JSON controller added. /json/package/:name implemented
This commit is contained in:
parent
0c439359b9
commit
b3d0b2dc06
4 changed files with 46 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ Debshots::Application.routes.draw do
|
|||
get 'with_screenshots', to: redirect('/packages?show=with')
|
||||
get 'without_screenshots', to: redirect('/packages?show=without')
|
||||
|
||||
get 'json/package/:name' => 'json#package', as: :json_package, 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