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'
|
|
|
|
match '/app', :to => 'init#index'
|
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.
|
2012-10-01 18:41:08 +00:00
|
|
|
root :to => 'init#index'
|
2012-05-18 13:54:48 +00:00
|
|
|
|
|
|
|
# load routes from external files
|
|
|
|
dir = File.expand_path('../', __FILE__)
|
|
|
|
files = Dir.glob( "#{dir}/routes/*.rb" )
|
|
|
|
for file in files
|
|
|
|
require file
|
|
|
|
ExtraRoutes.add(self)
|
|
|
|
end
|
2012-04-10 13:31:21 +00:00
|
|
|
end
|