chore: update session and challenge repo -- using Redis for caching session and challenge verifying -- added api handler docs

This commit is contained in:
2025-09-09 13:31:41 +03:30
parent dee9ce2f64
commit 6bf6a8ffc2
20 changed files with 1077 additions and 193 deletions
+22
View File
@@ -1 +1,23 @@
package main
import (
"backend/config"
"backend/internal/api/http"
"backend/internal/app"
"log"
)
func main() {
cfg, err := config.ReadStandard("config.yaml")
if err != nil {
log.Fatalf("Failed to load configuration: %v", err)
}
appContainer, err := app.NewAppContainer(cfg)
if err != nil {
log.Fatalf("Failed to initialize application: %v", err)
}
defer appContainer.Close()
http.Run(cfg.Server, appContainer)
}