Websites/config/routes/other_routes.rb

12 lines
289 B
Ruby

# frozen_string_literal: true
module OtherRoutes
def self.extended(router)
router.instance_exec do
constraints(DomainConstraint.new(Websites.config.exceptions_domain, "exceptions")) do
resources(:exceptions, only: %i[index show], path: "")
end
end
end
end