Search existing books
This commit is contained in:
@@ -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})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user