feat(mgmt): support YAML config retrieval and updates via /config.yaml

This commit is contained in:
hkfires
2025-10-19 21:56:12 +08:00
parent 0e91e95287
commit f8dcd707a6
2 changed files with 115 additions and 0 deletions

View File

@@ -384,6 +384,8 @@ func (s *Server) registerManagementRoutes() {
{
mgmt.GET("/usage", s.mgmt.GetUsageStatistics)
mgmt.GET("/config", s.mgmt.GetConfig)
mgmt.PUT("/config.yaml", s.mgmt.PutConfigYAML)
mgmt.GET("/config.yaml", s.mgmt.GetConfigFile)
mgmt.GET("/debug", s.mgmt.GetDebug)
mgmt.PUT("/debug", s.mgmt.PutDebug)