feat: 目录选择后自动保存配置到数据库

This commit is contained in:
2025-09-10 21:17:10 +08:00
parent dd2bb8fd50
commit 5b95f778c9
3 changed files with 45 additions and 2 deletions
+1
View File
@@ -52,6 +52,7 @@ func NewRouter(st *store.Store) *gin.Engine {
cc := NewConfigController(st)
apiGroup.GET("/config/nsfw", cc.GetNsfwConfig)
apiGroup.PUT("/config/nsfw", cc.UpdateNsfwConfig)
apiGroup.PUT("/config/scan-dir", cc.UpdateScanDir)
}
return r
}