engine/config/routes.rb in good_job-1.11.2 vs engine/config/routes.rb in good_job-1.11.3
- old
+ new
@@ -1,13 +1,19 @@
+# frozen_string_literal: true
GoodJob::Engine.routes.draw do
root to: 'dashboards#index'
resources :active_jobs, only: %i[show]
resources :jobs, only: %i[destroy]
scope controller: :assets do
- get :bootstrap_css
- get :bootstrap_js
- get :chartist_css
- get :chartist_js
- get :style_css
+ constraints(format: :css) do
+ get :bootstrap, action: :bootstrap_css
+ get :chartist, action: :chartist_css
+ get :style, action: :style_css
+ end
+
+ constraints(format: :js) do
+ get :bootstrap, action: :bootstrap_js
+ get :chartist, action: :chartist_js
+ end
end
end