Skip to content

Commit

Permalink
ref: move verifyPayment api out of authenticate middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
abbasfisal committed Nov 13, 2024
1 parent e116342 commit e374fa4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/modules/public/routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func SetPublic(r *gin.Engine, i18nBundle *i18n.Bundle) {
r.GET("/", publicHdl.HomePage)
r.GET("/product/:product_sku/:product_slug", publicHdl.SingleProduct) //show single product
r.GET("/search/:category_slug", publicHdl.ShowProductsByCategory) //show products by category
r.GET("/checkout/payment/verify", publicHdl.VerifyPayment) //payment callback url

publicAuthGrp := r.RouterGroup
customerRoute := r.RouterGroup
Expand Down Expand Up @@ -61,9 +62,6 @@ func SetPublic(r *gin.Engine, i18nBundle *i18n.Bundle) {

publicAuthGrp.POST("/checkout/payment", publicHdl.Payment) //payment

//put outside
publicAuthGrp.GET("/checkout/payment/verify", publicHdl.VerifyPayment) //payment callback url

}

guestGrp := r.Group("/")
Expand Down

0 comments on commit e374fa4

Please sign in to comment.