diff options
Diffstat (limited to 'internal/admin/api_flags.go')
| -rw-r--r-- | internal/admin/api_flags.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/admin/api_flags.go b/internal/admin/api_flags.go new file mode 100644 index 0000000..e2594f3 --- /dev/null +++ b/internal/admin/api_flags.go @@ -0,0 +1,14 @@ +package admin + +import "net/http" + +func (s *AdminServer) handleFlags(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{ + "flags": []any{}, + "note": "world flags are in-memory only", + }) +} |
