Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified the endpoint to fetch a user's certificate #384

Open
wants to merge 2 commits into
base: testing
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/award.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ router.delete("/awards/:id", deleteAwardController);

/**
* @swagger
* /api/v1/awards/{userId}:
* /api/v1/awards/user/{userId}:
* get:
* summary: Get awards for a user who's userId was passed and returns an array of objects containing the user's awards.
* description: Get awards for a user who's userId is in the params and returns an array of objects containing the user's awards.
Expand Down Expand Up @@ -341,6 +341,6 @@ router.delete("/awards/:id", deleteAwardController);
* 'Input Error':
* type: string
*/
router.get("awards/:userId", getAwardByUserId)
router.get("/awards/user/:userId", getAwardByUserId)

module.exports = router;