remove npl

This commit is contained in:
m
2026-07-12 22:15:23 +02:00
parent 010cb2cb49
commit 3650b7ba9d
21 changed files with 8 additions and 478 deletions
+1 -7
View File
@@ -27,19 +27,13 @@ func main() {
queries := db.New(database)
fileSvc := service.NewFileService(queries, cfg)
nlpSvc := service.NewNLPService(cfg, fileSvc)
ocrSvc := service.NewOCRService(cfg, fileSvc)
urlSvc := service.NewURLService(cfg.HMACSecret, cfg.ServerHost)
ocrSvc.SetNLPService(nlpSvc)
ocrSvc.Start()
defer ocrSvc.Stop()
nlpSvc.Start()
defer nlpSvc.Stop()
h := handler.New(fileSvc, ocrSvc, nlpSvc, urlSvc)
h := handler.New(fileSvc, ocrSvc, urlSvc)
r := gin.Default()
handler.SetupRoutes(r, h)