Add Boards management to sitesettings (#107)

This commit is contained in:
Riccardo Graziosi
2022-05-08 16:36:35 +02:00
committed by GitHub
parent 7b8a4d6709
commit 6be2394dc5
44 changed files with 1464 additions and 112 deletions

View File

@@ -19,13 +19,18 @@ Rails.application.routes.draw do
resources :likes, only: [:index]
resources :comments, only: [:index, :create, :update]
end
resources :boards, only: [:show]
resources :boards, only: [:index, :create, :update, :destroy, :show] do
patch 'update_order', on: :collection
end
resources :post_statuses, only: [:index, :create, :update, :destroy] do
patch 'update_order', on: :collection
end
namespace :site_settings do
get 'general'
get 'boards'
get 'post_statuses'
end
end