feat: update API response structure to nest payloads under a single "data" key

This commit is contained in:
2026-09-09 16:15:33 +08:00
parent b88e86f386
commit bc7eb9dfdd
8 changed files with 36 additions and 29 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
// SettingsGetHandler handles GET /api/settings/get?type=xxx.
// type selects which config file to return and may be one of
// "global", "bot_user_config" or "bot_node_config"; the returned "config"
// "global", "bot_user_config" or "bot_node_config"; the returned data.config
// object has the same layout as the source JSON file.
func SettingsGetHandler(w http.ResponseWriter, r *http.Request) {
if !utils.Auth(w, r, "GET", "admin") {