fix(backend): harden write registrar boundaries

This commit is contained in:
2026-07-21 16:12:20 +08:00
parent 1fcbb31301
commit 80bec26839
17 changed files with 639 additions and 42 deletions

View File

@@ -29,7 +29,7 @@ func main() {
tagHandler := projects.NewTagHandler(projectService)
cronHandler := projects.NewCronHandler(projectService)
taskHandler := tasks.NewHandler(taskService)
fileHandler := files.NewHandler(fileService)
fileHandler := files.NewHandler(fileService, cfg.MaxUploadBytes)
inboxHandler := inbox.NewHandler(inbox.NewService(inbox.StaticAnalyzer{}))
authHandler := auth.NewHandler(authService)
// search 与 AI 当前只有 service尚无 HTTP registrar后续功能任务应在实现真实契约后从此处注入不能注册伪端点。