Websites/config/routes/other_routes.rb

16 lines
432 B
Ruby
Raw Normal View History

2024-06-11 07:15:05 +00:00
# frozen_string_literal: true
module OtherRoutes
2024-08-06 10:57:00 +00:00
ADMIN_DOMAIN = "admin.#{Websites.config.admin_domain}".freeze
2024-06-11 07:15:05 +00:00
def self.extended(router)
router.instance_exec do
2024-08-06 10:57:00 +00:00
constraints(DomainConstraint.new(Websites.config.admin_domain, "admin")) do
namespace(:admin, path: "") do
resources(:exceptions, only: %i[index show])
mount(GoodJob::Engine, at: "/jobs")
end
2024-06-11 07:15:05 +00:00
end
end
end
end