axios problems

This commit is contained in:
Mikayla Dobson
2022-12-26 18:22:12 -06:00
parent ba4d72b431
commit 3831f110a3
11 changed files with 59 additions and 46 deletions

View File

@@ -57,7 +57,7 @@ export const authRoute = (app: Express, passport: PassportStatic) => {
router.post('/register', async (req, res, next) => {
try {
const data: IUser = req.body;
const data = req.body;
const response = await AuthInstance.register(data);
if (!response) res.status(400).send({ ok: false });
res.status(200).send({ ok: true });