add new file
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user