API v1 financial_transaction_classes endpoint

This commit is contained in:
Patrick Gansterer 2021-02-08 01:08:37 +01:00
parent aad4fbd5b6
commit 48391f818f
5 changed files with 105 additions and 0 deletions

View file

@ -0,0 +1,26 @@
class Api::V1::FinancialTransactionClassesController < Api::V1::BaseController
include Concerns::CollectionScope
def index
render json: search_scope
end
def show
render json: scope.find(params.require(:id))
end
private
def max_per_page
nil
end
def default_per_page
nil
end
def scope
FinancialTransactionClass.all
end
end