Files
kandev/apps/web/lib/api/domains/features-api.ts
T
2026-05-16 20:07:57 +01:00

10 lines
431 B
TypeScript

import { fetchJson, type ApiRequestOptions } from "../client";
import type { FeatureFlags } from "@/lib/state/slices/features/types";
// Mirrors the backend response shape from
// apps/backend/cmd/kandev/helpers.go GET /api/v1/features.
// New flags are additive boolean keys.
export function fetchFeatureFlags(options?: ApiRequestOptions): Promise<FeatureFlags> {
return fetchJson<FeatureFlags>("/api/v1/features", options);
}