annotate config/routes.rb @ 67:f7b7a39fb48c

Allow post in txt format pt. 2 (view and controller).
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 10:20:58 +0700
parents e0817b84c01b
children bb5f98459aac
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 Zeropaste::Application.routes.draw do
40
a81fb558f954 root_path is new_paste_path. Not aliased because it's :effort:.
Edho Arief <edho@myconan.net>
parents: 8
diff changeset
2 resources :pastes, :only => [:show, :create], :path => '/'
66
e0817b84c01b Allow post in txt format.
Edho Arief <edho@myconan.net>
parents: 65
diff changeset
3 post 'pastes' => 'pastes#create', :format => [:json, :xml, :txt]
4
23178d3de796 Slim controller (this app barely has any function)
Edho Arief <edho@myconan.net>
parents: 2
diff changeset
4 root :to => 'pastes#new'
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 end