@@ -7,7 +7,7 @@ require "active_support/core_ext/integer/time"
|
||||
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
|
||||
config.cache_classes = false
|
||||
|
||||
# Do not eager load code on boot. This avoids loading your whole application
|
||||
@@ -20,6 +20,7 @@ Rails.application.configure do
|
||||
config.public_file_server.headers = {
|
||||
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
|
||||
}
|
||||
config.action_mailer.default_url_options = { :host => 'localhost', port: 3000 }
|
||||
|
||||
# Show full error reports and disable caching.
|
||||
config.consider_all_requests_local = true
|
||||
|
||||
@@ -5,11 +5,13 @@ Rails.application.routes.draw do
|
||||
mount_devise_token_auth_for 'User', at: 'auth', controllers: { confirmations: 'confirmations', passwords: 'passwords',
|
||||
sessions: 'sessions' }, via: [:get, :post]
|
||||
|
||||
get "/u", to: "dashboard#index"
|
||||
get "/u/*params", to: "dashboard#index"
|
||||
|
||||
get '/', to: redirect('/u/login')
|
||||
match '/status', to: 'home#status', via: [:get] #for elb checks
|
||||
root :to => "dashboard#index"
|
||||
|
||||
get "/app", to: "dashboard#index"
|
||||
get "/app/*params", to: "dashboard#index"
|
||||
|
||||
match '/status', to: 'home#status', via: [:get]
|
||||
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
|
||||
Reference in New Issue
Block a user