add post userbook
needed a refactor to check the id in db during dto validation
This commit is contained in:
@@ -32,6 +32,9 @@ func Setup(config *config.Config) *gin.Engine {
|
||||
r.POST("/book", func(c *gin.Context) {
|
||||
routes.PostBookHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle})
|
||||
})
|
||||
r.POST("/userbook", func(c *gin.Context) {
|
||||
routes.PostUserBookHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle})
|
||||
})
|
||||
r.POST("/auth/signup", func(c *gin.Context) {
|
||||
routes.PostSignupHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user