🚚 Move API endpoint path
This commit is contained in:
parent
3993a1bc7f
commit
93e357d097
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user