A simple twilio app in rails and angular

routes.rb 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Rails.application.routes.draw do
  2. # The priority is based upon order of creation: first created -> highest priority.
  3. # See how all your routes lay out with "rake routes".
  4. # You can have the root of your site routed with "root"
  5. root 'home#index', as: :home
  6. get '/twilio/' => 'twilio#index', as: :twilio_home
  7. get '/twilio/get_message/' => 'twilio#get_message', as: :twilio_get_message
  8. resources :messages
  9. get 'call_logs/:id' => 'call_logs#show', as: :call_logs_show
  10. get 'call_logs/' => 'call_logs#index', as: :call_logs_index
  11. # Example of regular route:
  12. # get 'products/:id' => 'catalog#view'
  13. # Example of named route that can be invoked with purchase_url(id: product.id)
  14. # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
  15. # Example resource route (maps HTTP verbs to controller actions automatically):
  16. # resources :products
  17. # Example resource route with options:
  18. # resources :products do
  19. # member do
  20. # get 'short'
  21. # post 'toggle'
  22. # end
  23. #
  24. # collection do
  25. # get 'sold'
  26. # end
  27. # end
  28. # Example resource route with sub-resources:
  29. # resources :products do
  30. # resources :comments, :sales
  31. # resource :seller
  32. # end
  33. # Example resource route with more complex sub-resources:
  34. # resources :products do
  35. # resources :comments
  36. # resources :sales do
  37. # get 'recent', on: :collection
  38. # end
  39. # end
  40. # Example resource route with concerns:
  41. # concern :toggleable do
  42. # post 'toggle'
  43. # end
  44. # resources :posts, concerns: :toggleable
  45. # resources :photos, concerns: :toggleable
  46. # Example resource route within a namespace:
  47. # namespace :admin do
  48. # # Directs /admin/products/* to Admin::ProductsController
  49. # # (app/controllers/admin/products_controller.rb)
  50. # resources :products
  51. # end
  52. end