techacademy/config/routes.rb

28 lines
740 B
Ruby

Rails.application.routes.draw do
resources :newsletter, only: %i[index new create destroy]
namespace :admin do
namespace :articles do
get 'all_page/publish'
get 'all_page/unpublish'
resources :all_page
end
root 'home#index'
post 'home/change_pass'
resources :home
get 'all_page/publish'
get 'all_page/unpublish'
get 'all_page/pp_priority_up'
get 'all_page/pp_priority_down'
resources :all_page
resources :article
end
devise_for :admins
post 'site/send_email'
get 'site/kontakt'
get 'site/preview/:id' => 'site#preview'
root 'site#index'
resources :site
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end