Improve config file editing and recovery fallback mechanisms (#3082)

This commit is contained in:
Zane
2025-06-26 11:08:57 -07:00
committed by GitHub
parent 39b943ee85
commit 79553e0b8b
8 changed files with 722 additions and 187 deletions
+46
View File
@@ -306,6 +306,29 @@
}
}
},
"/config/recover": {
"post": {
"tags": [
"super::routes::config_management"
],
"operationId": "recover_config",
"responses": {
"200": {
"description": "Config recovery attempted",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "Internal server error"
}
}
}
},
"/config/remove": {
"post": {
"tags": [
@@ -375,6 +398,29 @@
}
}
},
"/config/validate": {
"get": {
"tags": [
"super::routes::config_management"
],
"operationId": "validate_config",
"responses": {
"200": {
"description": "Config validation result",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"422": {
"description": "Config file is corrupted"
}
}
}
},
"/confirm": {
"post": {
"tags": [