blah express update

This commit is contained in:
newtbot
2023-12-19 19:24:50 +08:00
parent 7c53b362eb
commit 6fcf603603
3 changed files with 9 additions and 7 deletions

View File

@ -12,8 +12,9 @@ async function getallData() {
return allData;
}
catch(error) {
console.error('Error:', error);
console.error(error);
return null;
}
}
@ -27,8 +28,9 @@ router.get('/', async (req, res) => {
res.send(data);
}
} catch (error) {
console.error('Error:', error);
console.error(error);
res.status(500).send('Internal Server Error');
}
});