Skip to content

Commit

Permalink
Merge pull request #4136 from OSC/backport-route-fix
Browse files Browse the repository at this point in the history
Permissive constraints on owner segment for apps/show (#4133)
  • Loading branch information
johrstrom authored Feb 12, 2025
2 parents 0144f06 + e100af1 commit 8264d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
# analytics request appears in the access logs and google analytics
get 'analytics/:type' => proc { [204, {}, ['']] }, :as => 'analytics'

get 'apps/show/:name(/:type(/:owner))' => 'apps#show', :as => 'app', :defaults => { type: 'sys' }
get 'apps/icon/:name(/:type(/:owner))' => 'apps#icon', :as => 'app_icon', :defaults => { type: 'sys' }
get 'apps/show/:name(/:type(/:owner))' => 'apps#show', :as => 'app', :defaults => { type: 'sys' }, :constraints => { owner: %r{[^/]+} }
get 'apps/icon/:name(/:type(/:owner))' => 'apps#icon', :as => 'app_icon', :defaults => { type: 'sys' }, :constraints => { owner: %r{[^/]+} }
get 'apps/index' => 'apps#index'

get 'apps/restart' => 'apps#restart' if Configuration.app_sharing_enabled?
Expand Down

0 comments on commit 8264d48

Please sign in to comment.