Download packages/api/src/routers/settings.ts from Atmint/cpns: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/Atmint/cpns/resolve/main/packages/api/src/routers/settings.ts
- Command line
-
hf download hf://spaces/Atmint/cpns/packages/api/src/routers/settings.ts
-
curl -L -o settings.ts https://huggingface.co/spaces/Atmint/cpns/resolve/main/packages/api/src/routers/settings.ts
395 Bytes
| import { router, protectedProcedure } from "../index"; | |
| export const settingsRouter = router({ | |
| // Placeholder for future settings endpoints (profile, preferences, etc.) | |
| getProfile: protectedProcedure.query(({ ctx }) => { | |
| return { | |
| id: ctx.session.user.id, | |
| name: ctx.session.user.name, | |
| email: ctx.session.user.email, | |
| image: ctx.session.user.image, | |
| }; | |
| }), | |
| }); | |