Websites/config/routes/furry_cool_routes.rb

21 lines
482 B
Ruby
Raw Normal View History

2024-05-03 03:04:43 +00:00
# frozen_string_literal: true
module FurryCoolRoutes
DOMAIN = "furry.cool"
def self.extended(router)
router.instance_exec do
namespace(:furry_cool, path: "") do
constraints(DomainConstraint.new(DOMAIN)) do
namespace(:home, path: "") do
get(:manifest, constraints: { format: "json" })
get(:browserconfig, constraints: { format: "xml" })
end
root(to: "home#index")
end
end
end
end
end