diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index e409840..449cda1 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
@@ -1,14 +1,14 @@ | |||
1 | Rails.application.routes.draw do | 1 | Rails.application.routes.draw do |
2 | namespace :admin do | ||
3 | get '/', to: 'dashboard#index' | ||
4 | |||
5 | resources :blogs, except: [:show] | ||
6 | end | ||
7 | |||
8 | mount Ckeditor::Engine => '/ckeditor' | ||
2 | devise_for :users, controllers: { sessions: 'users/sessions' } | 9 | devise_for :users, controllers: { sessions: 'users/sessions' } |
3 | 10 | ||
4 | root "records#index" | 11 | root "records#index" |
5 | 12 | ||
6 | get 'says/:slug', to: 'entries#show' | 13 | 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' | ||
10 | |||
11 | # get ':directory/:slug', to: 'entries#show', constraints: lambda { |request| | ||
12 | # Entry::DIRECTORIES.include? request.path_parameters['directory'] | ||
13 | # } | ||
14 | end | 14 | end |