diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 9c94f8a..e409840 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
@@ -4,6 +4,9 @@ Rails.application.routes.draw do | |||
4 | root "records#index" | 4 | root "records#index" |
5 | 5 | ||
6 | get 'says/:slug', to: 'entries#show' | 6 | get 'says/:slug', to: 'entries#show' |
7 | get 'says/:slug/edit', to: 'entries#edit' | ||
8 | put 'says/:slug', to: 'entries#update' | ||
9 | patch 'says/:slug', to: 'entries#update' | ||
7 | 10 | ||
8 | # get ':directory/:slug', to: 'entries#show', constraints: lambda { |request| | 11 | # get ':directory/:slug', to: 'entries#show', constraints: lambda { |request| |
9 | # Entry::DIRECTORIES.include? request.path_parameters['directory'] | 12 | # Entry::DIRECTORIES.include? request.path_parameters['directory'] |