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

@@ -50,7 +50,11 @@ scope "(:locale)", locale: /en|mm/ do
post 'authenticate' => "authenticate#create"
delete 'authenticate' => "authenticate#destroy"
get "menu_item_groups" => "menu_item_groups#index"
get 'get_tax_profiles' => 'api#get_tax_profiles'
scope '/(:group_type)', defaults: { group_type: nil } do
resources :tax_profiles, only: [:index]
end
namespace :restaurant do
get 'zones' => "zones#index"
resources :menu, only: [:index, :show]
@@ -69,7 +73,6 @@ scope "(:locale)", locale: /en|mm/ do
post "bill/:booking_id" => "bill#create"
post "move" => "move#create"
#Order Controller
resources :orders, only: [:create, :show, :update] do
post "bill" => "bill#create"