config/routes.rb in cas-cms-0.1.3 vs config/routes.rb in cas-cms-1.0.0.alpha1

- old
+ new

@@ -1,10 +1,13 @@ require 'sidekiq/web' -Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base] +# TODO - need to migrate Sidekiq +#Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base] Cas::Engine.routes.draw do mount Shrine.presign_endpoint(:cache) => "/files/cache/presign" + # TODO - fix + # mount Shrine.upload_endpoint(:cache) => "/files/upload" authenticate :user, ->(u){ u.roles.include?('admin') } do mount Sidekiq::Web => '/sidekiq' end @@ -12,9 +15,10 @@ class_name: "Cas::User", module: :devise, controllers: { sessions: "cas/devise/sessions" }, skip: :registrations + resources :activities, only: [:index] resources :sites, only: [:index] do resources :users, controller: 'sites/users' resources :sections, only: [:index], controller: 'sites/sections' do resources :contents, controller: 'sites/sections/contents'