feat: add app download
ci-api / test (push) Successful in 27m41s
ci-web / test (push) Successful in 14m6s

This commit is contained in:
Xor290
2026-08-09 15:35:29 +02:00
parent 0609ca30d0
commit d8794358c5
13 changed files with 520 additions and 24 deletions
+9 -7
View File
@@ -20,6 +20,7 @@ import (
"github.com/omnex/control-plane/api/internal/config"
"github.com/omnex/control-plane/api/internal/db"
"github.com/omnex/control-plane/api/internal/demos"
"github.com/omnex/control-plane/api/internal/downloads"
"github.com/omnex/control-plane/api/internal/k8s"
"github.com/omnex/control-plane/api/internal/profile"
"github.com/omnex/control-plane/api/internal/router"
@@ -184,13 +185,14 @@ func main() {
}
deps := router.Deps{
Cfg: cfg,
Issuer: iss,
Sessions: sessions,
AuthH: auth.NewHandler(userStore, sessions, iss, cfg.Secure()),
DemosH: demos.NewHandler(demoSvc, helmProv),
SubH: sub.NewHandler(codeStore, demoSvc),
ProfileH: profile.NewHandler(profileStore),
Cfg: cfg,
Issuer: iss,
Sessions: sessions,
AuthH: auth.NewHandler(userStore, sessions, iss, cfg.Secure()),
DemosH: demos.NewHandler(demoSvc, helmProv),
SubH: sub.NewHandler(codeStore, demoSvc),
ProfileH: profile.NewHandler(profileStore),
DownloadsH: downloads.NewHandler(cfg.AppDownloadsDir, userStore, demoSvc),
}
r := router.New(deps)