diff options
author | re4k <re4k@re4k.info> | 2013-03-09 19:48:53 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-03-09 19:48:53 +0900 |
commit | 11d5c2683fe0f296280fa4b717db92b1d358d704 (patch) | |
tree | eeb7b773f072a668ab6668f99162dcdc9932c132 /config/routes.rb | |
parent | 4ba0b50fc998c9b47b74adc31b6422f7dddcd199 (diff) | |
download | aclog-11d5c2683fe0f296280fa4b717db92b1d358d704.tar.gz |
* Fix #1
* Increase worker
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..609e7fd --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,21 @@ +Aclog::Application.routes.draw do + constraints = { + :id => /[0-9]+/, + :screen_name => /[a-zA-Z0-9_]{1,20}/, + :page => /[0-9]+/, + } + + root :to => "main#index" + get "i/callback" => "sessions#callback" + get "i/logout" => "sessions#destroy" + + get "i/:id" => "i#show", :constraints => constraints + get "(users)/:screen_name/status(es)/:id" => "i#show", :constraints => constraints + + get "(users)/:screen_name(/:page)" => "users#best", :constraints => constraints + get "(users)/:screen_name/my(/:page)" => "users#my", :constraints => constraints + get "(users)/:screen_name/discovered(/:page)" => "users#my", :constraints => constraints + get "(users)/:screen_name/timeline(/:page)" => "users#timeline", :constraints => constraints + get "(users)/:screen_name/recent(/:page)" => "users#recent", :constraints => constraints + get "(users)/:screen_name/info(/:page)" => "users#info", :constraints => constraints +end |