Skip to content

Commit

Permalink
Update name of two endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
moiskillnadne committed Nov 25, 2024
1 parent 8f3487f commit 55f8a6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/api/userDevice/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const route = express.Router();

/**
* @swagger
* /api/protected/userDevice/save-device-meta:
* /api/protected/userDevice/save:
* post:
* summary: Save user device metadata
* tags: [User Device]
Expand Down Expand Up @@ -152,7 +152,7 @@ const route = express.Router();
* example: Internal server error
*/
route.post(
'/save-device-meta',
'/save',
authMiddleware,
async (req: Request, res: Response, next: NextFunction) => {
const user = req.user;
Expand Down
4 changes: 2 additions & 2 deletions src/api/userMeta/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const route = express.Router();

/**
* @swagger
* /api/protected/userMeta/save-user-meta:
* /api/protected/userMeta/save:
* post:
* summary: Save user metadata
* tags: [userMeta]
Expand Down Expand Up @@ -110,7 +110,7 @@ const route = express.Router();
* example: Internal server error
*/
route.post(
'/save-user-meta',
'/save',
authMiddleware,
async (req: Request, res: Response, next: NextFunction) => {
const user = req.user;
Expand Down

0 comments on commit 55f8a6f

Please sign in to comment.