added endpoint for get cancelled invoices

This commit is contained in:
Oleg Hasjanov 2021-09-03 12:15:44 +03:00 committed by olegphenomenon
parent 5a19149129
commit 62ce5ff561
4 changed files with 70 additions and 4 deletions

View file

@ -127,6 +127,9 @@ Rails.application.routes.draw do
end
namespace :accreditation_center do
# At the moment invoice_status endpoint returns only cancelled invoices. But in future logic of this enpoint can change.
# And it will need to return invoices of different statuses. I decided to leave the name of the endpoint "invoice_status"
resources :invoice_status, only: [ :index ]
resource :domains, only: [ :show ], param: :name
resource :contacts, only: [ :show ], param: :id
# resource :auth, only: [ :index ]