diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 73302240c..fdd619596 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -1,4 +1,6 @@ class CustomersController < ApplicationController def index + customers = Customer.all + render json: customers.as_json(only:[:id,:name,:registers_at,:postal_code,:phone,:methods=>[:movies_checked_out_count]]) end end