Skip to content

Commit

Permalink
Reorder routes
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Mar 19, 2024
1 parent 92891e1 commit dffa1ad
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,24 @@
end
# rubocop:enable Layout/LineLength

authenticate :user, ->(u) { u.admin? } do
mount Sidekiq::Web => "/sidekiq"
end

get "/accountability", to: "static#accountability", as: :accountability_static
get "/accountability/sections/:section", to: "static#accountability_sections", as: :accountability_sections

get "/pages/faq", to: redirect("/pages/decidim")

scope "/processes/:participatory_process_slug/f/:component_id" do
get :export_results, to: "export_results#csv"

get :import_results, to: "decidim/accountability/admin/import_results#new"
post :import_results, to: "decidim/accountability/admin/import_results#create"
end

get "/pages/faq", to: redirect("/pages/decidim")

mount Decidim::Core::Engine => "/"
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
mount Decidim::EphemeralParticipation::Engine, at: "/", as: "decidim_ephemeral_participation"
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
authenticate :user, ->(u) { u.admin? } do
mount Sidekiq::Web => "/sidekiq"
end

mount Decidim::EphemeralParticipation::Engine, at: "/", as: "decidim_ephemeral_participation"
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end

0 comments on commit dffa1ad

Please sign in to comment.