diff options
| author | Chia <Chia@93.nz> | 2026-08-05 09:26:05 +1200 |
|---|---|---|
| committer | Chia <Chia@93.nz> | 2026-08-05 09:26:05 +1200 |
| commit | 86b1f42e3c5601ff10621a9779cf0076590797a1 (patch) | |
| tree | ccf584f0404dece2e4dae2eee847b665f57c0737 /cmd | |
| parent | 1a3d7f9a8a181df48f0e911cbe17a3fad3ab9ac9 (diff) | |
add sth.
Diffstat (limited to '')
| -rw-r--r-- | cmd/aigw/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/aigw/main.go b/cmd/aigw/main.go index de929de..44a22d0 100644 --- a/cmd/aigw/main.go +++ b/cmd/aigw/main.go @@ -149,7 +149,8 @@ func run(ctx context.Context, cfg config.Config, logger *slog.Logger) error { if cfg.Admin.Enabled { adminHandler := adminapi.New(adminapi.Options{ Store: store, Manager: manager, Billing: billingService, Token: cfg.Admin.Token, - Logger: logger, Prefix: cfg.Admin.BasePath, + Logger: logger, Prefix: cfg.Admin.BasePath, RegistrationEnabled: cfg.Admin.RegistrationEnabled, + SessionTTL: time.Duration(cfg.Admin.SessionTTLHours) * time.Hour, Currency: cfg.Billing.Currency, }).Handler() root.Handle(cfg.Admin.BasePath, adminHandler) root.Handle(cfg.Admin.BasePath+"/", adminHandler) |
