🚚 Move API endpoint path

This commit is contained in:
LittleSheep 2025-02-02 22:46:01 +08:00
parent 3993a1bc7f
commit 93e357d097
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ func MapAPIs(app *fiber.App, baseURL string) {
{
order.Get("/:id", getOrder)
order.Post("/:id/pay", payOrder)
order.Post("/third-client", createOrderFor3rd)
order.Post("/", createOrder)
}
}
}

View File

@ -25,7 +25,7 @@ func getOrder(c *fiber.Ctx) error {
return c.JSON(order)
}
func createOrderFor3rd(c *fiber.Ctx) error {
func createOrder(c *fiber.Ctx) error {
var data struct {
ClientID string `json:"client_id" validate:"required"`
ClientSecret string `json:"client_secret" validate:"required"`