Skip to content

Commit

Permalink
Merge pull request #1044 from openSUSE/hellcp/fix-distribution-endpoint
Browse files Browse the repository at this point in the history
Fix distribution endpoint redirect
  • Loading branch information
lkocman committed Mar 1, 2022
2 parents a170b06 + 8c9623e commit e821b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
get 'distributions/testing', to: redirect('https://get.opensuse.org/testing')
get 'distributions/legacy', to: redirect('https://get.opensuse.org/legacy')

get 'api/v0/distributions', to: redirect('https://get.opensuse.org/api/v0/distributions')
get 'api/v0/distributions', to: redirect('https://get.opensuse.org/api/v0/distributions.json')

get '421', to: redirect('/distributions/leap')
get '421/:locale', to: redirect('/distributions/leap?locale=%{locale}')
Expand Down

0 comments on commit e821b45

Please sign in to comment.