From 9cfb084346cedf3f9de1a9229891cb868cd89ea3 Mon Sep 17 00:00:00 2001 From: abbas Date: Wed, 27 Nov 2024 11:11:36 +0330 Subject: [PATCH] add: route /admins/orders/:id/update-status --- internal/modules/admin/routes/routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/modules/admin/routes/routes.go b/internal/modules/admin/routes/routes.go index 2619fe9..2456576 100644 --- a/internal/modules/admin/routes/routes.go +++ b/internal/modules/admin/routes/routes.go @@ -143,6 +143,7 @@ func SetAdminRoutes(r *gin.Engine, i18nBundle *i18n.Bundle) { //order authGrp.GET("/admins/orders", adminHlr.IndexOrders) authGrp.GET("/admins/orders/:id/details", adminHlr.ShowOrder) + authGrp.POST("/admins/orders/:id/update-status", adminHlr.EditOrder) }