aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-03-23 22:26:46 +0900
committerre4k <re4k@re4k.info>2013-03-23 22:26:46 +0900
commit22b478cd66a419c30ab28471fbd495019810469e (patch)
tree79a9241179be1731cea41dbf7451297b932d6933 /config
parentc40c306bac93950ff83e65d05eede0e5cf54edc3 (diff)
downloadaclog-22b478cd66a419c30ab28471fbd495019810469e.tar.gz
Fix route
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 7f3b727..3b65357 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -16,23 +16,24 @@ Aclog::Application.routes.draw do
get "/i/best" => "i#best"
get "/i/recent" => "i#recent"
- get "/i/:id" => "i#show", :constraints => constraints
get "/i/show" => "i#show", :constraints => constraints
+ get "/users/best" => "users#best", :constraints => constraints
+ get "/users/recent" => "users#recent", :constraints => constraints
+ get "/users/timeline" => "users#timeline", :constraints => constraints
+ get "/users/discovered" => "users#discovered", :constraints => constraints
+
+ get "/i/:id" => "i#show", :constraints => constraints
get "/:screen_name(/:page)" => "users#best", :constraints => constraints
- get "/users/best" => "users#best", :constraints => constraints
get "/:screen_name/best" => redirect("/%{screen_name}")
get "/:screen_name/recent(/:page)" => "users#recent", :constraints => constraints
- get "/users/recent" => "users#recent", :constraints => constraints
get "/:screen_name/timeline(/:page)" => "users#timeline", :constraints => constraints
get "/:screen_name/timeline/:tweets(/:page)" => "users#timeline", :constraints => constraints
- get "/users/timeline" => "users#timeline", :constraints => constraints
get "/:screen_name/discovered(/:page)" => "users#discovered", :constraints => constraints
get "/:screen_name/discovered/:tweets(/:page)" => "users#discovered", :constraints => constraints
- get "/users/discovered" => "users#discovered", :constraints => constraints
get "/(users)/:screen_name/status(es)/:id" => redirect("/i/%{id}")
get "/users/:screen_name" => redirect("/%{screen_name}")