class Api::V1::InvoicesController < ApplicationController
  def index
    # render json: InvoiceSerializer.new(Merchant.find(params[:merchant_id]).invoices) 
    render json: InvoiceSerializer.new(Invoice.all) 
  end

  def show
    render json: InvoiceSerializer.new(Invoice.find(params[:id])) 
  end
end
