🐛 Fix endpoint cannot order id

This commit is contained in:
LittleSheep 2025-02-02 22:49:49 +08:00
parent 93e357d097
commit a66d2b507f

View File

@ -21,8 +21,8 @@ func MapAPIs(app *fiber.App, baseURL string) {
order := api.Group("/orders").Name("Order API")
{
order.Get("/:id", getOrder)
order.Post("/:id/pay", payOrder)
order.Get("/:orderId", getOrder)
order.Post("/:orderId/pay", payOrder)
order.Post("/", createOrder)
}
}