fix: enable customer authentication middleware in router setup
This commit is contained in:
1 parent
33881795c5
commit
01b27fdde6
1 file changed
+1
-1
@@ -248,7 +248,7 @@ func SetupRouter() *gin.Engine {
|
||||
|
||||
// 需要认证的接口
|
||||
cuAuth := cuGroup.Group("")
|
||||
//cuAuth.Use(middleware.CustomerAuth())
|
||||
cuAuth.Use(middleware.CustomerAuth())
|
||||
{
|
||||
// 用户个人资料
|
||||
cuAuth.GET("/profile", cuProfileHandler.GetCuUserProfile)
|
||||
|
||||
Reference in new issue
Block a user