This commit is contained in:
newtbot
2024-01-24 14:37:57 +08:00
parent e710fa15a1
commit d0aeab286a
5 changed files with 5 additions and 36 deletions

View File

@ -25,6 +25,7 @@ router.get("/", async (req, res, next) => {
//add location
router.post("/new", async (req, res, next) => {
try {
console.log(req.body);
const { name, added_by, description } = req.body;
await addLocation(name, added_by, description);
res.sendStatus(200)