chore: update session and challenge repo -- using Redis for caching session and challenge verifying -- added api handler docs
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user