MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / getCustomThemes

Function getCustomThemes

backend/src/api/controllers/user.ts:818–827  ·  view source on GitHub ↗
(
  req: MonkeyRequest,
)

Source from the content-addressed store, hash-verified

816}
817
818export async function getCustomThemes(
819 req: MonkeyRequest,
820): Promise<GetCustomThemesResponse> {
821 const { uid } = req.ctx.decodedToken;
822 const customThemes = await UserDAL.getThemes(uid);
823 return new MonkeyResponse(
824 "Custom themes retrieved",
825 replaceObjectIds(customThemes),
826 );
827}
828
829export async function addCustomTheme(
830 req: MonkeyRequest<undefined, AddCustomThemeRequest>,

Callers

nothing calls this directly

Calls 1

replaceObjectIdsFunction · 0.90

Tested by

no test coverage detected