Websites/config/routes/maidboye_cafe_routes.rb

25 lines
831 B
Ruby
Raw Normal View History

2024-05-03 03:04:43 +00:00
# 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