mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
12 lines
496 B
TypeScript
12 lines
496 B
TypeScript
import { getFeatureRepository } from "@calcom/features/di/containers/FeatureRepository";
|
|
import publicProcedure from "@calcom/trpc/server/procedures/publicProcedure";
|
|
|
|
/**
|
|
* TRPC procedure that returns a map of all feature flags and their enabled status.
|
|
* Uses the CachedFeatureRepository to handle caching and database access.
|
|
*/
|
|
export const map = publicProcedure.query(async () => {
|
|
const featuresRepository = getFeatureRepository();
|
|
return featuresRepository.getFeatureFlagMap();
|
|
});
|