aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_global_flags.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-07 16:24:27 -0400
committerhistoria <[not public]>2026-07-07 16:24:27 -0400
commitab2597b22ccdb71116992aec78080d9858358d04 (patch)
tree8beae4060c2831c4a68f92b682b5350cfa1d0afb /internal/admin/api_global_flags.go
parent3f30fa3eec9c2e2acf9a984ccefb9529a25e688a (diff)
downloadthehouseoficarus-ab2597b22ccdb71116992aec78080d9858358d04.tar.gz
rename flags to global_flags (differentiate from player_flags)
Diffstat (limited to 'internal/admin/api_global_flags.go')
-rw-r--r--internal/admin/api_global_flags.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/admin/api_global_flags.go b/internal/admin/api_global_flags.go
new file mode 100644
index 0000000..ab286ad
--- /dev/null
+++ b/internal/admin/api_global_flags.go
@@ -0,0 +1,14 @@
+package admin
+
+import "net/http"
+
+func (s *AdminServer) handleGlobalFlags(w http.ResponseWriter, r *http.Request) {
+ if r.Method != http.MethodGet {
+ http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
+ return
+ }
+ writeJSON(w, map[string]any{
+ "global_flags": []any{},
+ "note": "global flags are in-memory only",
+ })
+}