Merge branch 'Dev-branch'

This commit is contained in:
newtbot
2024-01-18 03:17:00 +08:00
3 changed files with 208 additions and 22 deletions

View File

@ -15,9 +15,11 @@ router.get("/", async (req, res, next) => {
});
router.post("/register", async (req, res, next) => {
// /user/register
router.post("/register", async (req, res, next) => {
try {
await addUser(req.body);
//await addUser(req.body);
res.sendStatus(200);
} catch (error) {
console.error(error);