This commit is contained in:
2025-09-01 21:11:28 +08:00
parent 79156aa8ae
commit 05bf1b5662
6 changed files with 253 additions and 8 deletions
+5
View File
@@ -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
}