config/routes.rb in good_job-4.1.0 vs config/routes.rb in good_job-4.1.1

- old
+ new

@@ -31,10 +31,10 @@ resources :processes, only: %i[index] resources :performance, only: %i[index show] - scope :frontend, controller: :frontends do - get "modules/:name", action: :module, as: :frontend_module, constraints: { format: 'js' } - get "static/:name", action: :static, as: :frontend_static, constraints: { format: %w[css js] } + scope :frontend, controller: :frontends, defaults: { version: GoodJob::VERSION.tr(".", "-") } do + get "modules/:version/:id", action: :module, as: :frontend_module, constraints: { format: 'js' } + get "static/:version/:id", action: :static, as: :frontend_static, constraints: { format: %w[css js svg] } end end