/json/packages and /json/screenshots implemented
This commit is contained in:
parent
b3d0b2dc06
commit
a90bb51b38
4 changed files with 25 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ Debshots::Application.routes.draw do
|
|||
get 'without_screenshots', to: redirect('/packages?show=without')
|
||||
|
||||
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 }
|
||||
|
||||
# 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