add methos to api customer controller

This commit is contained in:
Zin Moe
2020-07-23 18:19:25 +06:30
parent d2504d8433
commit 682ff6bb23
3 changed files with 25 additions and 2 deletions

View File

@@ -83,6 +83,8 @@ scope "(:locale)", locale: /en|mm/ do
#Current active bookings
resources :bookings, only: [:index, :show, :create, :update]
resources :customers
# get customer by phone
get "get_customer_by_phone" => "customers#get_customer_by_phone"
#get customer details by order items
get "customers/get_order/:id" => "customers#get_customer_order"