Initial
This commit is contained in:
@ -72,6 +72,7 @@ func handleGetProduct(dbConn *gorm.DB) gin.HandlerFunc {
|
||||
func initRouter(dbConn *gorm.DB) *gin.Engine {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
router := gin.Default()
|
||||
router.Use(corsMiddleware())
|
||||
|
||||
routes := router.Group("/products")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user