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

25 lines
831 B
Ruby

# frozen_string_literal: true
module MaidboyeCafeRoutes
DOMAIN = "maidboye.cafe"
def self.extended(router)
router.instance_exec do
namespace(:maidboye_cafe, path: "") do
constraints(DomainConstraint.new(DOMAIN)) do
namespace(:home, path: "") do
get(:privacy)
get(:manifest, constraints: { format: "json" })
get(:browserconfig, constraints: { format: "xml" })
end
get("/support", to: redirect("https://api.maidboye.cafe/links/support?source=website"), as: :support)
get("/invite", to: redirect("https://api.maidboye.cafe/links/invite?source=website"), as: :invite)
get("/inv", to: redirect("https://api.maidboye.cafe/links/invite?source=website"))
root(to: "home#index")
end
end
end
end
end