Connect React workspace to backend data

This commit is contained in:
2026-07-20 13:02:26 +08:00
parent 215268e836
commit 875b326ddc
28 changed files with 1017 additions and 257 deletions

View File

@@ -22,7 +22,8 @@ func main() {
authService := auth.NewService(cfg.AuthSecret)
projectHandler := projects.NewHandler(projects.NewService())
inboxHandler := inbox.NewHandler(inbox.NewService(inbox.StaticAnalyzer{}))
appRouter := httpx.NewProtectedRouter(cfg, authService.VerifySession, projectHandler, inboxHandler)
authHandler := auth.NewHandler(authService)
appRouter := httpx.NewProtectedRouter(cfg, authService.VerifySession, authHandler, projectHandler, inboxHandler)
if err := appRouter.Run(":" + cfg.Port); err != nil {
log.Fatal(err)
}