2023-11-03 23:48:50 +00:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ectrc/snow/aid"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
|
|
|
|
2024-01-28 22:04:40 +00:00
|
|
|
func RedirectSocket(c *fiber.Ctx) error {
|
|
|
|
return c.Redirect("/socket")
|
|
|
|
}
|
|
|
|
|
2023-11-03 23:48:50 +00:00
|
|
|
func AnyNoContent(c *fiber.Ctx) error {
|
|
|
|
return c.SendStatus(fiber.StatusNoContent)
|
|
|
|
}
|
|
|
|
|
2023-11-05 22:08:53 +00:00
|
|
|
func PostGamePlatform(c *fiber.Ctx) error {
|
2023-11-03 23:48:50 +00:00
|
|
|
return c.Status(fiber.StatusOK).SendString("true")
|
|
|
|
}
|
|
|
|
|
2023-11-05 22:08:53 +00:00
|
|
|
func GetGameEnabledFeatures(c *fiber.Ctx) error {
|
2023-11-03 23:48:50 +00:00
|
|
|
return c.Status(fiber.StatusOK).JSON([]string{})
|
|
|
|
}
|
|
|
|
|
2023-11-05 22:08:53 +00:00
|
|
|
func PostGameAccess(c *fiber.Ctx) error {
|
2023-11-03 23:48:50 +00:00
|
|
|
return c.Status(fiber.StatusOK).SendString("true")
|
|
|
|
}
|
|
|
|
|
2023-11-05 22:08:53 +00:00
|
|
|
func GetFortniteReceipts(c *fiber.Ctx) error {
|
2023-11-03 23:48:50 +00:00
|
|
|
return c.Status(fiber.StatusOK).JSON([]string{})
|
|
|
|
}
|
|
|
|
|
2023-11-05 22:08:53 +00:00
|
|
|
func GetMatchmakingSession(c *fiber.Ctx) error {
|
2023-11-20 21:20:26 +00:00
|
|
|
return c.Status(fiber.StatusOK).Send([]byte{})
|
2023-11-03 23:48:50 +00:00
|
|
|
}
|
|
|
|
|
2023-11-05 22:08:53 +00:00
|
|
|
func GetFortniteVersion(c *fiber.Ctx) error {
|
2023-11-03 23:48:50 +00:00
|
|
|
return c.Status(fiber.StatusOK).JSON(aid.JSON{
|
|
|
|
"type": "NO_UPDATE",
|
|
|
|
})
|
2023-11-05 01:58:00 +00:00
|
|
|
}
|
|
|
|
|
2023-11-20 21:20:26 +00:00
|
|
|
func GetWaitingRoomStatus(c *fiber.Ctx) error {
|
|
|
|
return c.SendStatus(fiber.StatusNoContent)
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetRegion(c *fiber.Ctx) error {
|
|
|
|
return c.Status(fiber.StatusOK).JSON(aid.JSON{
|
|
|
|
"continent": aid.JSON{
|
|
|
|
"code": "EU",
|
|
|
|
},
|
|
|
|
"country": aid.JSON{
|
|
|
|
"iso_code": "GB",
|
|
|
|
},
|
|
|
|
"subdivisions": []aid.JSON{},
|
|
|
|
})
|
2023-11-03 23:48:50 +00:00
|
|
|
}
|