package httpapi

import "net/http"

func handleMeta(w http.ResponseWriter, _ *http.Request) {
	writeJSON(w, http.StatusOK, map[string]any{
		"service": "morz-infoboard-backend",
		"version": "dev",
		"api": map[string]any{
			"base_path": "/api/v1",
			"health":    "/healthz",
			"tools": []map[string]string{
				{
					"name":   "message-wall-resolve",
					"method": http.MethodPost,
					"path":   "/api/v1/tools/message-wall/resolve",
				},
				{
					"name":   "screen-status-list",
					"method": http.MethodGet,
					"path":   "/api/v1/screens/status",
				},
				{
					"name":   "screen-status-detail",
					"method": http.MethodGet,
					"path":   "/api/v1/screens/{screenId}/status",
				},
				{
					"name":   "player-status-ingest",
					"method": http.MethodPost,
					"path":   "/api/v1/player/status",
				},
				{
					"name":   "screen-status-delete",
					"method": http.MethodDelete,
					"path":   "/api/v1/screens/{screenId}/status",
				},
			},
			"diagnostic_ui": map[string]string{
				"screen_list":   "/status",
				"screen_detail": "/status/{screenId}",
			},
		},
	})
}
