feat: Implement users/me API endpoint

This commit is contained in:
Faruk AYDIN
2024-02-13 02:04:50 +01:00
parent 95f89ba03e
commit 9f0e0ca656
7 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { Router } from 'express';
import { authenticateUser } from '../../../helpers/authentication.js';
import getCurrentUserAction from '../../../controllers/api/v1/users/get-current-user.js';
const router = Router();
router.get('/me', authenticateUser, getCurrentUserAction);
export default router;