feat: increased security
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-02-21 21:05:47 +03:00
parent 04830681b9
commit 8befcc11c1
14 changed files with 233 additions and 50 deletions

View File

@@ -35,7 +35,10 @@ func run() error {
address := fmt.Sprintf("0.0.0.0:%s", cfg.ServerPort)
repo := repositories.NewLinksRepository(database)
service := services.NewLinksService(repo)
service, err := services.NewLinksService(repo)
if err != nil {
log.Fatalf("failed to initialize links service: %v", err)
}
handler := handlers.NewLinksHandler(service, cfg.ServerHost, cfg.ServerPort)
server := httpserver.NewServer(address, handler)