aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_global_flags.go
diff options
context:
space:
mode:
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",
+ })
+}