Spaces:
Sleeping
Sleeping
Download backend/src/controllers/roadmap.controller.ts from cuteepeiarchu/PathFinders: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/cuteepeiarchu/PathFinders/resolve/main/backend/src/controllers/roadmap.controller.ts
- Command line
-
hf download hf://spaces/cuteepeiarchu/PathFinders/backend/src/controllers/roadmap.controller.ts
-
curl -L -o roadmap.controller.ts https://huggingface.co/spaces/cuteepeiarchu/PathFinders/resolve/main/backend/src/controllers/roadmap.controller.ts
460 Bytes
| import { NextFunction, Request, Response } from "express"; | |
| import { roadmapService } from "../services/roadmap.service"; | |
| export const roadmapController = { | |
| getByCareerId( | |
| request: Request<{ careerId: string }>, | |
| response: Response, | |
| next: NextFunction, | |
| ) { | |
| try { | |
| const data = roadmapService.getCareerRoadmap(request.params.careerId); | |
| response.json({ success: true, data }); | |
| } catch (error) { | |
| next(error); | |
| } | |
| }, | |
| }; | |