diff --git a/config/routes.rb b/config/routes.rb index 1a9edf61..4ad2b6c2 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -239,7 +239,7 @@ scope "(:locale)", locale: /en|mm/ do get '/addorders/get_menu_sub_category/:id' => "addorders#get_menu_sub_category",:as => "get_menu_sub_category", :defaults => { :format => 'json' } get '/addorders/products/list' => "addorders#get_all_product",:as => "get_all_product", :defaults => { :format => 'json' } - # match '/:addorders/:id' => "addorders#detail", via: [:post, :get] + get '/:addorders/:id', to: "addorders#detail" post '/:addorders/create' => "addorders#create",:as => "addorder_create", :defaults => { :format => 'json' }