feat: fix stock check and add admin order status update
This commit is contained in:
@@ -188,9 +188,10 @@ func SetupRoutes(r *gin.Engine) {
|
||||
adminOrders := admin.Group("/orders")
|
||||
{
|
||||
adminOrders.GET("", orderHandler.AdminList)
|
||||
adminOrders.GET("/:id", orderHandler.AdminGetByID)
|
||||
adminOrders.GET("/:id", orderHandler.AdminGetByID)
|
||||
adminOrders.GET("/export", orderHandler.Export)
|
||||
adminOrders.PUT("/:id/refund", orderHandler.ProcessRefund)
|
||||
adminOrders.PUT("/:id/status", orderHandler.AdminUpdateStatus)
|
||||
}
|
||||
|
||||
adminLotteries := admin.Group("/lotteries")
|
||||
|
||||
Reference in New Issue
Block a user