| @@ -9,7 +9,7 @@ const endpoints = require('../endpoints/token') | |||
| /** | |||
| * @openapi | |||
| * /login/: | |||
| * /auth/token/: | |||
| * put: | |||
| * description: Log in user | |||
| * tags: [Token] | |||
| @@ -21,13 +21,13 @@ const endpoints = require('../endpoints/token') | |||
| * 500: | |||
| * description: Internal server error. | |||
| */ | |||
| router.post('/login', async (req, res) => { | |||
| router.post('/auth/token', async (req, res) => { | |||
| return await endpoints.loginUser(req, res) | |||
| }) | |||
| /** | |||
| * @openapi | |||
| * /logout/: | |||
| * /auth/logout/: | |||
| * put: | |||
| * description: Log out user | |||
| * tags: [Token] | |||
| @@ -35,11 +35,11 @@ router.post('/login', async (req, res) => { | |||
| * 200: | |||
| * description: User logged out successfully! | |||
| * 404: | |||
| * description: No user has the token provided!! | |||
| * description: No user has the token provided! | |||
| * 500: | |||
| * description: Internal server error. | |||
| */ | |||
| router.post('/logout/', async (req, res) => { | |||
| router.post('/auth/logout', async (req, res) => { | |||
| return await endpoints.logout(req, res) | |||
| }) | |||