Parent Issue
Closes part of #117
Description
Create the Express router for job endpoints and register it in server.ts. This is the final backend step before frontend integration can begin.
Files to Create/Modify
- Create:
backend/route/job.route.ts
- Modify:
backend/server.ts (add 2 lines)
Expected Outcome
All 4 job endpoints are reachable and return expected responses. Smoke test with curl:
curl -X POST http://localhost:3000/jobs/fetch -H 'Authorization: Bearer <token>'
curl http://localhost:3000/jobs
Dependencies
- Sub-Issue 3 (
job.controller.ts must exist)
PR Branch
feature/job-routes
Estimated Effort
~30 minutes
Changes to server.ts
import jobRouter from './route/job.route.js';
// ...
app.use('/jobs', jobRouter);
Reference: #116
Requested by: @yb175
Parent Issue
Closes part of #117
Description
Create the Express router for job endpoints and register it in
server.ts. This is the final backend step before frontend integration can begin.Files to Create/Modify
backend/route/job.route.tsbackend/server.ts(add 2 lines)Expected Outcome
All 4 job endpoints are reachable and return expected responses. Smoke test with curl:
curl -X POST http://localhost:3000/jobs/fetch -H 'Authorization: Bearer <token>' curl http://localhost:3000/jobsDependencies
job.controller.tsmust exist)PR Branch
feature/job-routesEstimated Effort
~30 minutes
Changes to server.ts
Reference: #116
Requested by: @yb175