Skip to content

[BE] Sub-Issue 4: Create Job Router and Register in server.ts #121

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions