sunsheng 8 mesiacov pred
rodič
commit
d3440edfc3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/api/router.go

+ 1 - 1
src/api/router.go

@@ -14,7 +14,7 @@ func RegRouters(svc *Service) {
 	// 用户登录
 	crrouter.POST("/user/login/password", UserLoginPassword)
 	// 用户管理
-	crrouter.POSTJWT("/admin/user/create", CreateUser)
+	crrouter.POST("/admin/user/create", CreateUser)
 	crrouter.POSTJWT("/admin/user/delete/:id", DeleteUser)
 	crrouter.POSTJWT("/admin/user/delete/batch", BatchDeleteUser)
 	crrouter.GETJWT("/admin/user/list", UserList)