about summary refs log tree commit diff stats
path: root/config/routes.rb
blob: e409840f27537779555367511e9680470c5618f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Rails.application.routes.draw do
  devise_for :users, controllers: { sessions: 'users/sessions' }

  root "records#index"

  get 'says/:slug', to: 'entries#show'
  get 'says/:slug/edit', to: 'entries#edit'
  put 'says/:slug', to: 'entries#update'
  patch 'says/:slug', to: 'entries#update'

  # get ':directory/:slug', to: 'entries#show', constraints: lambda { |request|
  #   Entry::DIRECTORIES.include? request.path_parameters['directory']
  # }
end