2019-08-18 14:51:37 +02:00
|
|
|
Rails.application.routes.draw do
|
2019-08-26 14:29:56 +02:00
|
|
|
root to: 'static_pages#roadmap'
|
2019-08-28 18:54:25 +02:00
|
|
|
get '/roadmap', to: 'static_pages#roadmap'
|
2019-08-21 16:13:39 +02:00
|
|
|
|
2022-06-24 14:39:35 +02:00
|
|
|
devise_for :users, :controllers => { :registrations => 'registrations' }
|
|
|
|
|
resources :users, only: [:index, :update]
|
2019-08-22 17:09:13 +02:00
|
|
|
|
2022-06-22 10:17:42 +02:00
|
|
|
resources :posts, only: [:index, :create, :show, :update, :destroy] do
|
2022-05-28 11:03:36 +02:00
|
|
|
resource :follows, only: [:create, :destroy]
|
|
|
|
|
resources :follows, only: [:index]
|
2019-09-27 12:32:30 +02:00
|
|
|
resource :likes, only: [:create, :destroy]
|
2019-09-30 16:54:37 +02:00
|
|
|
resources :likes, only: [:index]
|
2022-06-22 10:17:42 +02:00
|
|
|
resources :comments, only: [:index, :create, :update, :destroy]
|
2022-05-28 11:03:36 +02:00
|
|
|
resources :post_status_changes, only: [:index]
|
2019-09-16 18:02:52 +02:00
|
|
|
end
|
2022-05-08 16:36:35 +02:00
|
|
|
|
|
|
|
|
resources :boards, only: [:index, :create, :update, :destroy, :show] do
|
|
|
|
|
patch 'update_order', on: :collection
|
|
|
|
|
end
|
|
|
|
|
|
2022-05-01 18:00:38 +02:00
|
|
|
resources :post_statuses, only: [:index, :create, :update, :destroy] do
|
|
|
|
|
patch 'update_order', on: :collection
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
namespace :site_settings do
|
|
|
|
|
get 'general'
|
2022-05-08 16:36:35 +02:00
|
|
|
get 'boards'
|
2022-05-01 18:00:38 +02:00
|
|
|
get 'post_statuses'
|
2022-06-12 15:22:06 +02:00
|
|
|
get 'roadmap'
|
2022-06-24 14:39:35 +02:00
|
|
|
get 'users'
|
2022-05-01 18:00:38 +02:00
|
|
|
end
|
2019-08-18 14:51:37 +02:00
|
|
|
end
|