Skip to content

Commit

Permalink
refactored routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshjosh361 committed Oct 16, 2024
1 parent da9248c commit b6f6f74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions order-service/internal/routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit b6f6f74

Please sign in to comment.