cleaning up api and adding in conversation create route

This commit is contained in:
talksik
2022-06-11 08:28:43 -05:00
parent b37a25fa82
commit 92aea9de25
9 changed files with 158 additions and 103 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ export const authCheck = async (req: Request, res: Response, next: NextFunction)
next();
} catch (error) {
res.status(401).send('unauthorized');
res.status(301);
next(error);
}
};