feat(acp): handler refactor + sessions REST endpoints (list/create/get/delete/events)

This commit is contained in:
2026-05-07 14:34:47 +08:00
parent 26011975b4
commit 72cd353757
4 changed files with 232 additions and 9 deletions
+1 -4
View File
@@ -327,10 +327,7 @@ func New(ctx context.Context, cfg *config.Config, dist embed.FS) (*App, error) {
MaxActivePerUser: cfg.Acp.MaxActivePerUser,
},
)
_ = sessSvc // wired in G1 (handler refactor)
// Handler: G1 will refactor to take sessSvc + acpSup. For now use Part 1 signature.
acp.NewHandler(akSvc, userSvc, userAdminAdapter{svc: userSvc}, enc).Mount(r)
acp.NewHandler(akSvc, sessSvc, acpSup, acpRepo, userSvc, userAdminAdapter{svc: userSvc}, enc).Mount(r)
// ===== jobs module wiring =====
jobsRepo := jobs.NewPostgresRepository(pool)