Sha256: 425475d82e1da7bb90913b910c786b6793e240d32a3c476fcaff557f3478981d
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 Bytes
Contents
require 'sidekiq/web' Sidekiq::Web.set :session_secret, Rails.application.secrets[:secret_key_base] Cas::Engine.routes.draw do mount Shrine.presign_endpoint(:cache) => "/files/cache/presign" authenticate :user, ->(u){ u.roles.include?('admin') } do mount Sidekiq::Web => '/sidekiq' end devise_for :users, class_name: "Cas::User", module: :devise, controllers: { sessions: "cas/devise/sessions" }, skip: :registrations resources :users, controller: 'users' resources :sections, only: [:index] do resources :contents, controller: 'sections/contents' resources :categories, controller: 'sections/categories' end # used by tinymce editor resources :file_uploads, only: :create namespace :api, module: "api" do resources :files, only: [:create, :destroy] end root 'sections#index' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cas-cms-0.1.0 | config/routes.rb |