Add a new tab to browse all books on the instance

This commit is contained in:
2026-03-25 15:45:50 +01:00
parent 9db7957ad3
commit 315d7db56a
11 changed files with 195 additions and 3 deletions

View File

@@ -39,7 +39,9 @@ func Setup(config *config.Config) *gin.Engine {
ws.GET("/appinfo", func(c *gin.Context) {
routes.GetAppInfo(appcontext.AppContext{C: c, Db: db, I18n: bundle, Config: config})
})
ws.GET("/books", func(c *gin.Context) {
routes.GetBooksHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle, Config: config})
})
ws.GET("/mybooks/read", func(c *gin.Context) {
routes.GetMyBooksReadHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle, Config: config})
})