/json/ URL should work with dots in the package name now
All checks were successful
Build and Push Docker Image / build-and-push-image (push) Successful in 7m49s
All checks were successful
Build and Push Docker Image / build-and-push-image (push) Successful in 7m49s
This commit is contained in:
parent
e3ecd96c99
commit
9faf4aeada
1 changed files with 7 additions and 4 deletions
|
|
@ -85,11 +85,14 @@ Rails.application.routes.draw do
|
|||
get 'without_screenshots', to: redirect('/packages?show=without')
|
||||
|
||||
# JSON data responses
|
||||
get 'json/package/:name' => 'json#package', as: :json_package, defaults: { format: :json }
|
||||
get 'json/packages' => 'json#packages', as: :json_packages, defaults: { format: :json }
|
||||
get 'json/screenshots' => 'json#screenshots', as: :json_screenshots, defaults: { format: :json }
|
||||
get 'json/package/:name' => 'json#package', as: :json_package, defaults: { format: :json },
|
||||
name: %r{[^/]+}
|
||||
get 'json/packages' => 'json#packages', as: :json_packages, defaults: { format: :json },
|
||||
name: %r{[^/]+}
|
||||
get 'json/screenshots' => 'json#screenshots', as: :json_screenshots,
|
||||
defaults: { format: :json }, name: %r{[^/]+}
|
||||
get 'json/packages-without-screenshots' => 'json#packages_without_screenshots',
|
||||
defaults: { format: :json }
|
||||
defaults: { format: :json }, name: %r{[^/]+}
|
||||
|
||||
# The priority is based upon order of creation: first created -> highest priority.
|
||||
# See how all your routes lay out with "rake routes".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue