移除注册功能,管理员创建用户并新增创建用户弹窗

This commit is contained in:
2026-07-04 10:00:53 +08:00
parent 5a50af66bf
commit acd335c435
8 changed files with 218 additions and 212 deletions
+1 -2
View File
@@ -20,8 +20,7 @@ type CurrentUser struct {
}
var publicPaths = map[string]struct{}{
"/api/auth/register": {},
"/api/auth/login": {},
"/api/auth/login": {},
}
func AuthMiddleware(cfg *config.Config, db *gorm.DB) gin.HandlerFunc {