trabajo-afectivo/config/routes.rb

28 lines
796 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
2015-09-25 14:37:55 +00:00
Rails.application.routes.draw do
2012-04-10 14:06:46 +00:00
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
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
# just remember to delete public/index.html.
root to: 'init#index', via: :get
root to: 'errors#routing', via: %i[post put delete options], as: nil
2013-08-22 20:29:24 +00:00
# load routes from external files
2018-04-12 14:57:37 +00:00
dir = File.expand_path(__dir__)
2013-08-22 20:29:24 +00:00
files = Dir.glob( "#{dir}/routes/*.rb" )
files.each do |file|
if Rails.configuration.cache_classes
require_dependency file
else
load file
end
end
2013-08-22 20:29:24 +00:00
match '*a', to: 'errors#routing', via: %i[get post put delete options]
end