remove npl
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user