mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
This is in preparation for adding in thoughtbot/administrate and custom authentication/authorisation.
23 lines
371 B
Ruby
23 lines
371 B
Ruby
DanBarberPhoto::Application.routes.draw do
|
|
resources :contacts
|
|
|
|
resources :categories do
|
|
resources :photos do
|
|
member do
|
|
post :log_view
|
|
end
|
|
end
|
|
end
|
|
|
|
resources :photos do
|
|
member do
|
|
post :log_view
|
|
end
|
|
end
|
|
|
|
resources :contacts, only: [:new, :create]
|
|
|
|
get '/:name' => 'pages#show', as: :page
|
|
root to: 'home#index'
|
|
end
|