trabajo-afectivo/config/routes.rb

23 lines
526 B
Ruby
Raw Normal View History

2012-04-10 13:31:21 +00:00
Zammad::Application.routes.draw do
2012-04-10 14:06:46 +00:00
# app init
match '/init', to: 'init#index', via: :get
match '/app', to: 'init#index', via: :get
2012-04-10 13:31:21 +00:00
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
root to: 'init#index', via: :get
2013-08-22 20:29:24 +00:00
# load routes from external files
dir = File.expand_path('../', __FILE__)
files = Dir.glob( "#{dir}/routes/*.rb" )
for file in files
if Rails.configuration.cache_classes
require file
else
load file
end
2013-08-22 20:29:24 +00:00
end
end