mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Add response to REPP log
This commit is contained in:
parent
7edf48c885
commit
a41abf8176
6 changed files with 24 additions and 30 deletions
|
@ -3,9 +3,9 @@ module Repp
|
|||
class AuctionsController < ActionController::API
|
||||
def index
|
||||
auctions = Auction.started
|
||||
@response = { count: auctions.count, auctions: auctions_to_json(auctions) }
|
||||
|
||||
render json: { count: auctions.count,
|
||||
auctions: auctions_to_json(auctions) }
|
||||
render json: @response
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue