code tidy-up

This commit is contained in:
ari melody 2026-07-24 11:02:32 +01:00
parent a24fbfc96e
commit 2190cac343
Signed by: ari
GPG key ID: CF99829C92678188
5 changed files with 363 additions and 338 deletions

View file

@ -43,10 +43,14 @@ func main() {
srv := gin.New()
srv.SetTrustedProxies([]string{"127.0.0.1", "::1"})
learningService := learning.New(ctx, learning.ServiceConfig{
learningService, err := learning.New(ctx, learning.ServiceConfig{
TitleFilePath: "learning-title.txt",
})
learningService.BindRoutes(srv.Group("/learning"))
if err != nil {
log.Printf("Failed to create learning service: %v", err)
} else {
learningService.BindRoutes(srv.Group("/learning"))
}
musicService, err := music.New(ctx)
if err != nil {