json/packages-without-screenshots implemented
This commit is contained in:
parent
a90bb51b38
commit
c0109eb6e7
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue