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

This commit is contained in:
NanamiAdmin committed 2026-09-09 16:15:33 +08:00
1 parent b88e86f386
commit bc7eb9dfdd
8 files changed
+36 -29

No files matched your search

+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") {