add new file

This commit is contained in:
Sunandar
2017-01-24 17:45:12 +06:30
parent af7be218be
commit 2f427ae5b9
11 changed files with 130 additions and 33 deletions

View File

@@ -1,3 +1,32 @@
Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
root :to => 'home#index'
get "dashboard", to: "home#dashboard", as: "dashboard"
resources :batches,:only =>[:index]
devise_for :members
resources :batch_line_items,:only =>[:index,:create]
resources :users
#users
get 'check_registered_email' => "users#check_registered_email"
#Encoder
match 'batch_line_items/export' => 'batch_line_items#create', :as => 'export', :via => :post
namespace :api, defaults: {format: :json} do
#login
post "auth/login" =>"auth#login"
post "auth/logout" =>"auth#logout"
#Encoder
post "batch_line_items/register" =>"batch_line_items#register"
#Batch
post "batches" => "batches#create"
post "batches/end" => "batches#batch_end"
get "batches/resume_batch" =>"batches#resume_batch"
get "batches/batch_progress_list" =>"batches#batch_progress_list"
end
end