JSON controller added. /json/package/:name implemented

This commit is contained in:
Christoph Haas 2016-06-28 11:39:31 +02:00
parent 0c439359b9
commit b3d0b2dc06
4 changed files with 46 additions and 0 deletions

View file

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