Sha256: 768daef9eeb34b7106b1656eedfb92c296c3accef609fead5dd811b6a2970dd3
Contents?: true
Size: 873 Bytes
Versions: 8
Compression:
Stored size: 873 Bytes
Contents
require_relative "../app/constraints/panda_cms/admin_constraint" PandaCms::Engine.routes.draw do constraints PandaCms::AdminConstraint.new { |user| user.present? } do namespace PandaCms.admin_path_symbol.to_sym, as: :admin, module: :admin do resources :files resources :pages do resources :block_contents, only: %i[update] end resources :menus end get PandaCms.admin_path, to: "admin/dashboard#show", as: :admin_dashboard end ### PUBLIC ROUTES ### # Authentication routes get PandaCms.admin_path, to: "admin/sessions#new", as: :admin_login match "#{PandaCms.admin_path}/auth/:provider/callback", to: "admin/sessions#create", as: :admin_login_callback, via: %i[get post] delete PandaCms.admin_path, to: "admin/sessions#destroy", as: :admin_logout ### INHERITED ROUTES ### # See lib/panda_cms/engine.rb end
Version data entries
8 entries across 8 versions & 1 rubygems