diff --git a/src/api/userDevice/controller.ts b/src/api/userDevice/controller.ts index 3649ae5..516f630 100644 --- a/src/api/userDevice/controller.ts +++ b/src/api/userDevice/controller.ts @@ -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] @@ -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; diff --git a/src/api/userMeta/controller.ts b/src/api/userMeta/controller.ts index 97097a3..0479d86 100644 --- a/src/api/userMeta/controller.ts +++ b/src/api/userMeta/controller.ts @@ -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] @@ -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;