Search existing books

This commit is contained in:
2025-10-14 00:29:53 +02:00
parent f72318b5bc
commit bb0ede6abd
13 changed files with 156 additions and 3 deletions

View File

@@ -26,6 +26,9 @@ func Setup(config *config.Config) *gin.Engine {
r.GET("/mybooks", func(c *gin.Context) {
api.GetMyBooksHanderl(appcontext.AppContext{C: c, Db: db, I18n: bundle})
})
r.GET("/search/:searchterm", func(c *gin.Context) {
api.GetSearchBooksHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle})
})
r.POST("/book", func(c *gin.Context) {
api.PostBookHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle})
})