implement Comics schema and endpoints
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user