update: 持久化系统配置

This commit is contained in:
ctwj
2025-07-11 02:30:57 +08:00
parent 770d9b00cb
commit 45c6e9fec4
18 changed files with 1275 additions and 42 deletions

View File

@@ -111,6 +111,10 @@ func main() {
api.GET("/search-stats/trend", handlers.GetSearchTrend)
api.GET("/search-stats/keyword/:keyword/trend", handlers.GetKeywordTrend)
api.POST("/search-stats/record", handlers.RecordSearch)
// 系统配置路由
api.GET("/system/config", handlers.GetSystemConfig)
api.POST("/system/config", middleware.AuthMiddleware(), middleware.AdminMiddleware(), handlers.UpdateSystemConfig)
}
// 静态文件服务