json/packages-without-screenshots implemented

This commit is contained in:
Christoph Haas 2016-06-28 17:09:17 +02:00
parent a90bb51b38
commit c0109eb6e7
2 changed files with 2 additions and 0 deletions

View file

@ -16,5 +16,6 @@ class JsonController < ApplicationController
# JSON list of packages that do not have screenshots
def packages_without_screenshots
@p = Package.without_screenshots.all
end
end

View file

@ -38,6 +38,7 @@ Debshots::Application.routes.draw do
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/packages-without-screenshots' => 'json#packages_without_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".