diff options
author | rhenium <re4k@re4k.info> | 2013-05-18 22:16:02 +0900 |
---|---|---|
committer | rhenium <re4k@re4k.info> | 2013-05-18 22:16:02 +0900 |
commit | 9b2aa8f89aa13049896da3743c93e83575566088 (patch) | |
tree | 68d3b99d84415c9548eeacc575817bf2d46a58bc /config | |
parent | 2cc364a14c3211eaaac05c5d75591e7b70c7a8ca (diff) | |
download | aclog-9b2aa8f89aa13049896da3743c93e83575566088.tar.gz |
update routing
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index 5eb847b..97d6c67 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,12 +1,7 @@ Aclog::Application.routes.draw do - constraints = { - screen_name: /[a-zA-Z0-9_]{1,20}/, - screen_name_b: /[a-zA-Z0-9_]{1,20}/, - } - root to: "main#index" - scope format: false, constraints: constraints do + scope format: false do get "/search" => "search#search", as: "search" # Internals / SessionsController @@ -33,7 +28,8 @@ Aclog::Application.routes.draw do # JSON API scope "api", format: "json" do - get "/:controller/:action" + get "/users/:action", controller: "users" + get "/tweets/:action", controller: "tweets" end # Favstar redirects |