a
This commit is contained in:
1 parent
e710fa15a1
commit
d0aeab286a
5 files changed
+5
-36
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user