aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_global_flags.go
blob: ab286ad5b5e2754b3a7b817fe08e9e5c61393a33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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",
	})
}