Websites/config/routes/maid_gay_routes.rb

25 lines
801 B
Ruby

# frozen_string_literal: true
module MaidGayRoutes
DOMAIN = "maid.gay"
def self.extended(router)
router.instance_exec do
namespace(:maid_gay, 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.maid.gay/links/support?source=website"), as: :support)
get("/invite", to: redirect("https://api.maid.gay/links/invite?source=website"), as: :invite)
get("/inv", to: redirect("https://api.maid.gay/links/invite?source=website"))
root(to: "home#index")
end
end
end
end
end