Add invite user feature for admin
This commit is contained in:
@@ -111,6 +111,9 @@ func Setup(config *config.Config) *gin.Engine {
|
||||
ws.GET("/admin/users", func(c *gin.Context) {
|
||||
routes.GetUsersHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle, Config: config})
|
||||
})
|
||||
ws.POST("/admin/inviteuser", func(c *gin.Context) {
|
||||
routes.InviteUserHandler(appcontext.AppContext{C: c, Db: db, I18n: bundle, Config: config})
|
||||
})
|
||||
|
||||
r.Static("/static/bookcover", config.ImageFolderPath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user