annotate config/routes.rb @ 425:9369ad2f2ce8

Simplify logic
author nanaya <me@myconan.net>
date Mon, 26 Oct 2015 14:09:13 +0900
parents 9fe8c29c27c4
children 68eb23b52864
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
309
9fe8c29c27c4 Standardize syntax.
edogawaconan <me@myconan.net>
parents: 208
diff changeset
2 post "(pastes)" => "pastes#create", :format => /(html|json|xml|txt)/, :as => "pastes"
9fe8c29c27c4 Standardize syntax.
edogawaconan <me@myconan.net>
parents: 208
diff changeset
3 resources :pastes, :only => [:show, :destroy], :path => "/"
9fe8c29c27c4 Standardize syntax.
edogawaconan <me@myconan.net>
parents: 208
diff changeset
4 root :to => "pastes#new"
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 end