/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

This commit is contained in:
Christoph Haas 2026-05-27 21:33:40 +02:00
parent e3ecd96c99
commit 9faf4aeada

View file

@ -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".