Skip to content

Commit 8accdfd

Browse files
committed
2 parents 19f24a3 + c9ad87b commit 8accdfd

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

server/routes/bidRoutes.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { authenticateJWT } = require("../middlewares/authMiddleware");
1414

1515
/**
1616
* @swagger
17-
* /bid/{jobId}:
17+
* /bids/{jobId}:
1818
* get:
1919
* summary: Get all bids for a job
2020
* tags: [Bids]
@@ -43,7 +43,7 @@ router.use(authenticateJWT);
4343

4444
/**
4545
* @swagger
46-
* /bid/place:
46+
* /bids/place:
4747
* post:
4848
* summary: Place a new bid on a job
4949
* tags: [Bids]
@@ -73,7 +73,7 @@ router.post("/place", placeBid);
7373

7474
/**
7575
* @swagger
76-
* /bid/accept/{bidId}:
76+
* /bids/accept/{bidId}:
7777
* put:
7878
* summary: Accept a bid
7979
* tags: [Bids]
@@ -94,7 +94,7 @@ router.put("/accept/:bidId", acceptBid);
9494

9595
/**
9696
* @swagger
97-
* /bid/recent/bid:
97+
* /bids/recent/bid:
9898
* get:
9999
* summary: Get recent bids
100100
* tags: [Bids]
@@ -109,7 +109,7 @@ router.get("/recent/bid", getRecentBids);
109109

110110
/**
111111
* @swagger
112-
* /bid/{bidId}:
112+
* /bids/{bidId}:
113113
* get:
114114
* summary: Get a specific bid
115115
* tags: [Bids]
@@ -130,7 +130,7 @@ router.get("/bid/:bidId", getBidById);
130130

131131
/**
132132
* @swagger
133-
* /bid/user/{userId}:
133+
* /bids/user/{userId}:
134134
* get:
135135
* summary: Get all bids by a user
136136
* tags: [Bids]
@@ -151,7 +151,7 @@ router.get("/user/:userId", getBidsByUserId);
151151

152152
/**
153153
* @swagger
154-
* /bid/{bidId}/details:
154+
* /bids/{bidId}/details:
155155
* get:
156156
* summary: Get detailed bid information
157157
* tags: [Bids]
@@ -172,7 +172,7 @@ router.get("/:bidId/details", getBidDetails);
172172

173173
/**
174174
* @swagger
175-
* /bid/{bidId}:
175+
* /bids/{bidId}:
176176
* delete:
177177
* summary: Delete a bid
178178
* tags: [Bids]

server/routes/jobRoutes.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { invalidateResourceCache } = require("../utils/cacheUtils");
1717
// Create a job (employer)
1818
/**
1919
* @swagger
20-
* /job/create:
20+
* /jobs/create:
2121
* post:
2222
* summary: Create a new job
2323
* tags: [Jobs]
@@ -53,7 +53,7 @@ router.post("/create", authenticateJWT, async (req, res, next) => {
5353
// Get all jobs for marketplace
5454
/**
5555
* @swagger
56-
* /job/marketplace:
56+
* /jobs/marketplace:
5757
* get:
5858
* summary: Get all jobs for marketplace
5959
* tags: [Jobs]
@@ -72,7 +72,7 @@ router.get("/marketplace", routeCache.standard, getMarketplaceJobs);
7272
// Get a specific job by ID
7373
/**
7474
* @swagger
75-
* /job/{id}:
75+
* /jobs/{id}:
7676
* get:
7777
* summary: Get a specific job
7878
* tags: [Jobs]
@@ -135,7 +135,7 @@ router.put("/:id", async (req, res, next) => {
135135
// Route to get filtered jobs
136136
/**
137137
* @swagger
138-
* /job/jobs/filtered:
138+
* /jobs/jobs/filtered:
139139
* get:
140140
* summary: Get filtered jobs
141141
* tags: [Jobs]
@@ -166,7 +166,7 @@ router.get(
166166
// Get all jobs by user ID
167167
/**
168168
* @swagger
169-
* /job/user/{userId}:
169+
* /jobs/user/{userId}:
170170
* get:
171171
* summary: Get all jobs by user
172172
* tags: [Jobs]
@@ -192,7 +192,7 @@ router.get(
192192
// Route to get a specific job by ID
193193
/**
194194
* @swagger
195-
* /job/user/{id}:
195+
* /jobs/user/{id}:
196196
* get:
197197
* summary: Get a specific job with auth check
198198
* tags: [Jobs]
@@ -227,7 +227,7 @@ router.get(
227227
// Route to place a bid on a job
228228
/**
229229
* @swagger
230-
* /job/{jobId}/bid:
230+
* /jobs/{jobId}/bid:
231231
* post:
232232
* summary: Place a bid on a job
233233
* tags: [Jobs]

server/routes/notificationRoutes.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const {
1212

1313
/**
1414
* @swagger
15-
* /notification:
15+
* /notifications:
1616
* get:
1717
* summary: Get all notifications for logged-in user
1818
* tags: [Notifications]
@@ -64,7 +64,7 @@ const {
6464
* 201:
6565
* description: Notification created successfully
6666
*
67-
* /notification/unread-count:
67+
* /notifications/unread-count:
6868
* get:
6969
* summary: Get number of unread notifications
7070
* tags: [Notifications]
@@ -81,7 +81,7 @@ const {
8181
* count:
8282
* type: number
8383
*
84-
* /notification/{id}/read:
84+
* /notifications/{id}/read:
8585
* patch:
8686
* summary: Mark a notification as read
8787
* tags: [Notifications]
@@ -97,7 +97,7 @@ const {
9797
* 200:
9898
* description: Notification marked as read
9999
*
100-
* /notification/mark-all-read:
100+
* /notifications/mark-all-read:
101101
* patch:
102102
* summary: Mark all notifications as read
103103
* tags: [Notifications]
@@ -107,7 +107,7 @@ const {
107107
* 200:
108108
* description: All notifications marked as read
109109
*
110-
* /notification/{id}:
110+
* /notifications/{id}:
111111
* delete:
112112
* summary: Delete a notification
113113
* tags: [Notifications]

0 commit comments

Comments
 (0)