Add config to disable registration
This commit is contained in:
@@ -30,6 +30,10 @@ func Setup(config *config.Config) *gin.Engine {
|
||||
ws := r.Group("/ws")
|
||||
ws.Use(middleware.Auth())
|
||||
|
||||
ws.GET("/appinfo", func(c *gin.Context) {
|
||||
routes.GetAppInfo(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})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user