Websites/config/routes/maid_gay_routes.rb

25 lines
801 B
Ruby
Raw Permalink Normal View History

2024-05-03 03:04:43 +00:00
# frozen_string_literal: true
2024-07-25 06:44:22 +00:00
module MaidGayRoutes
DOMAIN = "maid.gay"
2024-05-03 03:04:43 +00:00
def self.extended(router)
router.instance_exec do
2024-07-25 06:44:22 +00:00
namespace(:maid_gay, path: "") do
2024-05-03 03:04:43 +00:00
constraints(DomainConstraint.new(DOMAIN)) do
namespace(:home, path: "") do
get(:privacy)
get(:manifest, constraints: { format: "json" })
get(:browserconfig, constraints: { format: "xml" })
end
2024-07-25 06:44:22 +00:00
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"))
2024-05-03 03:04:43 +00:00
root(to: "home#index")
end
end
end
end
end