X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Froutes.rb;h=8b7c093134888028210fb545f09d55994980fe03;hb=2ef6906763f81b88a2a82e84e78e0ba3918c22a8;hp=4a837c0969024b8c26ce30d275a9ad026a41608d;hpb=36d9f3351a3b4e8159279445190e2287ffdea86c;p=feedcatcher.git diff --git a/config/routes.rb b/config/routes.rb index 4a837c0..8b7c093 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,11 @@ Feedcatcher::Application.routes.draw do # You can have the root of your site routed with "root" # root 'welcome#index' + root 'feed#index' + + get 'index', to: 'feed#index', as: :index + get ':feed_name', to: 'feed#show', as: :feed + post '', to: 'feed#update', as: :update # Example of regular route: # get 'products/:id' => 'catalog#view'