From b6f6f749b1ec34bc32a44d4c093d8f972578ab8a Mon Sep 17 00:00:00 2001 From: Harshjosh361 Date: Wed, 16 Oct 2024 16:08:09 +0530 Subject: [PATCH] refactored routes --- order-service/internal/routes/routes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/order-service/internal/routes/routes.go b/order-service/internal/routes/routes.go index 4f19383..1d1d52f 100644 --- a/order-service/internal/routes/routes.go +++ b/order-service/internal/routes/routes.go @@ -10,7 +10,7 @@ func OrderRoutes(router *gin.Engine, OrderController *controller.OrderController orderGroup := router.Group("/orders") - orderGroup.POST("/order", OrderController.CreateOrder) - orderGroup.GET("/order/:id", OrderController.GetOrderById) - orderGroup.GET("/order/user/:userid", OrderController.GetOrderByUserId) + orderGroup.POST("/", OrderController.CreateOrder) + orderGroup.GET("/:id", OrderController.GetOrderById) + orderGroup.GET("/user/:userid", OrderController.GetOrderByUserId) }