21 lines
482 B
Ruby
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
|