Revision 2807589b
Added by Corey Osman almost 12 years ago
- ID 2807589bd5fc7f5d5d9cf00606181fa9b9136971
config/application.rb | ||
---|---|---|
|
||
module Foreman
|
||
class Application < Rails::Application
|
||
# Setup additional routes by loading all routes file from routes directory
|
||
config.paths.config.routes.concat Dir[Rails.root.join("config/routes/*.rb")]
|
||
|
||
# Setup api routes by loading all routes file from routes/api directory
|
||
config.paths.config.routes.concat Dir[Rails.root.join("config/routes/api/*.rb")]
|
||
|
||
|
||
# Settings in config/environments/* take precedence over those specified here.
|
||
# Application configuration should go into files in config/initializers
|
||
# -- all .rb files in that directory are automatically loaded.
|
Also available in: Unified diff
split api routes to separate routes file