0
0
Fork 0

Add terms of service (#33055)

This commit is contained in:
Eugen Rochko 2024-12-09 11:04:46 +01:00 committed by GitHub
parent 7a2a345c08
commit 30aa0df88c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
129 changed files with 1456 additions and 238 deletions

View file

@ -33,6 +33,18 @@ namespace :admin do
resources :action_logs, only: [:index]
resources :warning_presets, except: [:new, :show]
namespace :terms_of_service do
resource :generate, only: [:show, :create]
resource :history, only: [:show]
resource :draft, only: [:show, :update]
end
resources :terms_of_service, only: [:index, :create, :update] do
resource :preview, only: [:show], module: :terms_of_service
resource :test, only: [:create], module: :terms_of_service
resource :distribution, only: [:create], module: :terms_of_service
end
resources :announcements, except: [:show] do
member do
post :publish