fix server location on device registration

This commit is contained in:
m
2026-07-28 21:45:02 +02:00
parent 7af44152d7
commit 7cc425d28b
7 changed files with 158 additions and 31 deletions
+2 -2
View File
@@ -30,11 +30,11 @@ func main() {
queries := db.New(database)
resourceSvc := service.NewResourceService(queries, cfg)
resourceSvc := service.NewResourceService(database, queries, cfg)
ocrSvc := service.NewOCRService(cfg, resourceSvc)
conversionSvc := service.NewConversionService(queries, cfg)
urlSvc := service.NewURLService(cfg.HMACSecret, cfg.ServerHost, cfg.URLExpiryMinutes)
authSvc, err := auth.NewAuthService(queries, cfg)
authSvc, err := auth.NewAuthService(database, queries, cfg)
if err != nil {
log.Fatalf("Failed to create auth service: %v", err)
}