This commit is contained in:
Sunandar
2017-02-06 13:08:52 +06:30
parent cccf9c0e9b
commit 90eeb2ea1c
3 changed files with 85 additions and 40 deletions

View File

@@ -15,7 +15,8 @@ Rails.application.routes.draw do
get 'check_registered_email' => "users#check_registered_email"
#Encoder
match 'batch_line_items/export' => 'batch_line_items#export', :as => 'export', :via => :post
get 'get_batch' => 'batch_line_items#get_batch',:as => 'get_batch'
namespace :api, defaults: {format: :json} do
#login
post "auth/login" =>"auth#login"
@@ -31,6 +32,6 @@ Rails.application.routes.draw do
get "batches/batch_progress_list" =>"batches#batch_progress_list"
#client
get "clients/list" => 'clients#index'
get "clients" => 'clients#index'
end
end