decidim-admin/config/routes.rb in decidim-0.0.1.alpha4 vs decidim-admin/config/routes.rb in decidim-0.0.1.alpha5
- old
+ new
@@ -1,4 +1,7 @@
# frozen_string_literal: true
Decidim::Admin::Engine.routes.draw do
- root to: "dashboard#show", constraints: ->(request) { Decidim::Admin::OrganizationDashboardConstraint.new(request).matches? }
+ constraints(->(request) { Decidim::Admin::OrganizationDashboardConstraint.new(request).matches? }) do
+ resources :participatory_processes
+ root to: "dashboard#show"
+ end
end