Mercurial > rsstweet
diff config/routes.rb @ 165:5af9b537db86
Unbreak \everything/
- simplify routing, no more split hackery
- fix user lookup and differentiate between id and name lookup
author | nanaya <me@nanaya.pro> |
---|---|
date | Fri, 03 Aug 2018 02:31:25 +0900 |
parents | d5a0d66ee457 |
children | e2150dce4e90 |
line wrap: on
line diff
--- a/config/routes.rb Fri Aug 03 02:12:54 2018 +0900 +++ b/config/routes.rb Fri Aug 03 02:31:25 2018 +0900 @@ -1,5 +1,6 @@ Rails.application.routes.draw do root "tweets#index" - get "*id" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet" + get ":id/:name" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet" + get ":name" => "tweets#redirect" end