From 766b52dce100239d8ee46f7c41e2823bba057b37 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Wed, 21 Jun 2023 14:44:26 +0300 Subject: [PATCH] done refactoring User controller + UserModel --- src/routes/userRouter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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