remove get_tax_profiles from api_controller and create tax_profiles api

This commit is contained in:
Thein Lin Kyaw
2020-07-20 00:26:47 +06:30
parent ced6a09095
commit 4e61eba843
6 changed files with 19 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
class Api::TaxProfilesController < Api::ApiController
def index
@tax_profiles = TaxProfile.where(nil)
@tax_profiles = @tax_profiles.filter_by_group_type(params[:group_type]) if params[:group_type].present?
end
end