Fix routes in emails, redirects

This commit is contained in:
Pranav Raj Sreepuram
2019-08-17 17:50:43 +05:30
parent bacc87ad8c
commit bb87d840e0
3 changed files with 2 additions and 12 deletions

View File

@@ -3,18 +3,13 @@ Rails.application.routes.draw do
#AUTH STARTS
match 'auth/:provider/callback', to: 'home#callback', via: [:get, :post]
mount_devise_token_auth_for 'User', at: 'auth', controllers: { confirmations: 'confirmations', passwords: 'passwords' }, via: [:get, :post]
#AUTH STARTS
get "/u", to: "dashboard#index"
get "/u/*params", to: "dashboard#index"
#ROOT STARTS
get '/', to: redirect('/u/login')
match '/status', to: 'home#status', via: [:get] #for elb checks
#AUTH ENDS
#API STARTS
namespace :api do
namespace :v1 do
resources :callbacks, only: [] do
@@ -87,16 +82,11 @@ Rails.application.routes.draw do
end
end
end
#API ENDS
#these routes are only used to put on mailers. DO NOT USE INTERNALLY.
scope module: "mailer" do
resources :conversations, only: [:show]
end
#mailer routes ends
mount Facebook::Messenger::Server, at: 'bot'
post '/webhooks/telegram/:account_id/:inbox_id' => 'home#telegram'
end