Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. Rails.application.routes.draw do
  2.  
  3. root 'steps#index'
  4. match "/delayed_job" => DelayedJobWeb, :anchor => false, via: [:get, :post]
  5.  
  6. get 'login/new', to: 'tokens#new', as: :login_new
  7. post 'login', to: 'tokens#create', as: :login_create
  8. get 'login/:auth_token', to: 'sessions#create', as: :login
  9. get 'admin', to: 'users#showmeusers', as: :admin
  10. get 'admin/reports/:user_id', to: 'users#showmereports', as: :admin_reports
  11. get 'admin/calllogs/:user_id', to: 'users#showmecalllogs', as: :admin_calllogs
  12. get 'admin/perform', to: 'users#perform', as: :admin_perform
  13. post 'user/admin_edit', to: 'users#admin_edit'
  14. post 'admin', to: 'users#import'
  15. resource :user, only: [:edit, :create]
  16. get 'user/edit/:id', to: 'users#edit', as: :user_edit
  17. resource :step, only: [] do
  18. collection do
  19. get 'email'
  20. get 'business_hour'
  21. get 'end'
  22. end
  23. end
  24.  
  25.  
  26. # You can leave default_version out, but if you do the first version used will become the default
  27. api vendor_string: "myvendor", default_version: 1 do
  28. version 1 do
  29. cache as: 'v1' do
  30. post 'plivo_xml/plivo_verify_answer' => 'plivo_xml#plivo_verify_answer'
  31. post 'plivo_xml/plivo_verify_from_voice' => 'plivo_xml#plivo_verify_from_voice'
  32. post 'plivo_xml/plivo_verify_hangup' => 'plivo_xml#plivo_verify_hangup'
  33. post 'plivo_xml/plivo_poll_answer' => 'plivo_xml#plivo_poll_answer'
  34. post 'plivo_xml/plivo_poll_hangup' => 'plivo_xml#plivo_poll_hangup'
  35. post 'plivo_xml/plivo_recording/:calluuid' => 'plivo_xml#plivo_recording', as: :recording
  36. post 'plivo_xml/bucket' => 'plivo_xml#bucket'
  37.  
  38. # post 'user/:phone' => 'users#update'
  39. resource :user, only: [:show, :create, :update] do
  40. collection do
  41. get 'verification_result'
  42. post 'retry'
  43. post 'start_poll'
  44. post 'stop_poll'
  45. end
  46. end
  47. resource :business_hour, only: [:destroy, :create, :index, :update]
  48. resources :weekly_reports, only: [:index]
  49.  
  50. end
  51. end
  52.  
  53. # uncomment below to activate version 2
  54. # version 2 do
  55. # inherit from: 'v1'
  56. # end
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement