Websites/config/routes/other_routes.rb

12 lines
289 B
Ruby
Raw Normal View History

2024-06-11 07:15:05 +00:00
# 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