diff --git a/src/routes/userRouter.ts b/src/routes/userRouter.ts index 49134fd..58e1856 100644 --- a/src/routes/userRouter.ts +++ b/src/routes/userRouter.ts @@ -1,12 +1,12 @@ import express from 'express'; -import { create, login, getAll, deleteHandler } from '../controllers/userController'; +import { create, login, logout, getAll, deleteHandler } from '../controllers/userController'; const userRouter = express.Router(); userRouter.post('/', create); userRouter.get('/', getAll); userRouter.post('/login', login); -// userRouter.post('/logout', logout); +userRouter.post('/logout', logout); userRouter.delete('/:id', deleteHandler) export default userRouter; \ No newline at end of file