This commit is contained in:
newtbot
2024-01-24 16:01:30 +08:00
parent d0aeab286a
commit 7403f66c8a
12 changed files with 44 additions and 114 deletions

View File

@ -25,7 +25,6 @@ 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)