diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index e3c6ce156..81c205daa 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -136,9 +136,11 @@ Rails.application.routes.draw do end end - get '/timelines/home', to: 'timelines#home', as: :home_timeline - get '/timelines/public', to: 'timelines#public', as: :public_timeline - get '/timelines/tag/:id', to: 'timelines#tag', as: :hashtag_timeline + namespace :timelines do + resource :home, only: :show, controller: :home + resource :public, only: :show, controller: :public + resources :tag, only: :show + end get '/search', to: 'search#index', as: :search |