Sha256: 7b93278e7048098c7f490e90195e5cbaefbcf2f53825acc64904e3d4102026c5
Contents?: true
Size: 1.44 KB
Versions: 5
Compression:
Stored size: 1.44 KB
Contents
# frozen_string_literal: true Decidim::Admin::Engine.routes.draw do constraints(->(request) { Decidim::Admin::OrganizationDashboardConstraint.new(request).matches? }) do resource :organization, only: [:edit, :update], controller: "organization" do resource :appearance, only: [:edit, :update], controller: "organization_appearance" end Decidim.participatory_space_manifests.each do |manifest| mount manifest.admin_engine, at: "/", as: "decidim_admin_#{manifest.name}" end resources :static_pages resources :scope_types, except: [:show] resources :scopes, except: [:show] do resources :scopes, except: [:show] end resources :users, except: [:edit, :update], controller: "users" do member do post :resend_invitation, to: "users#resend_invitation" end end resources :managed_users, controller: "managed_users", except: [:edit, :update] do resources :promotions, controller: "managed_users/promotions", only: [:new, :create] resources :impersonations, controller: "managed_users/impersonations", only: [:index, :new, :create] do collection do post :close_session end end end resources :newsletters do member do get :preview post :deliver end end resources :user_groups, only: [:index] do member do put :verify put :reject end end root to: "dashboard#show" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
decidim-admin-0.7.4 | config/routes.rb |
decidim-admin-0.7.3 | config/routes.rb |
decidim-admin-0.7.2 | config/routes.rb |
decidim-admin-0.7.1 | config/routes.rb |
decidim-admin-0.7.0 | config/routes.rb |