Websites/config/routes/other_routes.rb

16 lines
432 B
Ruby

# frozen_string_literal: true
module OtherRoutes
ADMIN_DOMAIN = "admin.#{Websites.config.admin_domain}".freeze
def self.extended(router)
router.instance_exec do
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
end
end
end
end