implement Comics schema and endpoints

This commit is contained in:
2026-01-01 23:21:41 +01:00
parent a57cd9c294
commit fe919eaa35
6 changed files with 271 additions and 10 deletions
+3 -1
View File
@@ -23,13 +23,15 @@ func main() {
// SigningKey: jwtware.SigningKey{Key: []byte("secret")},
// }))
// app.Use(logger.New())
//app.Use(logger.New())
app.Get("/health", handler.GetHealth)
app.Post("/login", handler.Login)
api := app.Group("/api", logger.New(), jwtware.New(jwtware.Config{
SigningKey: jwtware.SigningKey{Key: []byte("secret")},
}))
api.Use(logger.New())
handler.SetupComicRoutes(api)
handler.SetupMediaRoutes(api)
// Listen on port 8900