sunsheng 8 сар өмнө
parent
commit
d3440edfc3

+ 1 - 1
src/api/router.go

@@ -14,7 +14,7 @@ func RegRouters(svc *Service) {
 	// 用户登录
 	// 用户登录
 	crrouter.POST("/user/login/password", UserLoginPassword)
 	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/:id", DeleteUser)
 	crrouter.POSTJWT("/admin/user/delete/batch", BatchDeleteUser)
 	crrouter.POSTJWT("/admin/user/delete/batch", BatchDeleteUser)
 	crrouter.GETJWT("/admin/user/list", UserList)
 	crrouter.GETJWT("/admin/user/list", UserList)