mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Add Site settings > General (#133)
This commit is contained in:
committed by
GitHub
parent
bdc4004e4a
commit
35831b9801
@@ -1,32 +1,53 @@
|
||||
Rails.application.routes.draw do
|
||||
root to: 'static_pages#roadmap'
|
||||
get '/roadmap', to: 'static_pages#roadmap'
|
||||
if Rails.application.multi_tenancy?
|
||||
constraints subdomain: 'showcase' do
|
||||
root to: 'static_pages#showcase', as: :showcase
|
||||
end
|
||||
|
||||
constraints subdomain: 'login' do
|
||||
get '/signup', to: 'tenants#new'
|
||||
resource :tenants, only: [:create]
|
||||
end
|
||||
end
|
||||
|
||||
constraints subdomain: /.*/ do
|
||||
root to: 'static_pages#roadmap'
|
||||
|
||||
get '/roadmap', to: 'static_pages#roadmap'
|
||||
get '/pending-tenant', to: 'static_pages#pending_tenant'
|
||||
get '/blocked-tenant', to: 'static_pages#blocked_tenant'
|
||||
|
||||
devise_for :users, :controllers => {
|
||||
:registrations => 'registrations',
|
||||
:sessions => 'sessions'
|
||||
}
|
||||
|
||||
resources :tenants, only: [:show, :update]
|
||||
resources :users, only: [:index, :update]
|
||||
|
||||
devise_for :users, :controllers => { :registrations => 'registrations' }
|
||||
resources :users, only: [:index, :update]
|
||||
|
||||
resources :posts, only: [:index, :create, :show, :update, :destroy] do
|
||||
resource :follows, only: [:create, :destroy]
|
||||
resources :follows, only: [:index]
|
||||
resource :likes, only: [:create, :destroy]
|
||||
resources :likes, only: [:index]
|
||||
resources :comments, only: [:index, :create, :update, :destroy]
|
||||
resources :post_status_changes, only: [:index]
|
||||
end
|
||||
resources :posts, only: [:index, :create, :show, :update, :destroy] do
|
||||
resource :follows, only: [:create, :destroy]
|
||||
resources :follows, only: [:index]
|
||||
resource :likes, only: [:create, :destroy]
|
||||
resources :likes, only: [:index]
|
||||
resources :comments, only: [:index, :create, :update, :destroy]
|
||||
resources :post_status_changes, only: [:index]
|
||||
end
|
||||
|
||||
resources :boards, only: [:index, :create, :update, :destroy, :show] do
|
||||
patch 'update_order', on: :collection
|
||||
end
|
||||
|
||||
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'
|
||||
get 'roadmap'
|
||||
get 'users'
|
||||
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'
|
||||
get 'roadmap'
|
||||
get 'users'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user