upd
This commit is contained in:
@@ -47,6 +47,11 @@ func NewRouter(st *store.Store) *gin.Engine {
|
||||
// 文件目录浏览(页面上"选择目录")
|
||||
fc := NewFsController()
|
||||
apiGroup.GET("/fs/list", fc.List)
|
||||
|
||||
// 系统配置
|
||||
cc := NewConfigController(st)
|
||||
apiGroup.GET("/config/nsfw", cc.GetNsfwConfig)
|
||||
apiGroup.PUT("/config/nsfw", cc.UpdateNsfwConfig)
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user