Websites/config/routes/furry_cool_routes.rb
2024-05-02 22:04:43 -05:00

21 lines
482 B
Ruby

# 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