location.js
295 Bytes
const express = require('express');
const router = express.Router();
let location = new Array();
location = {
lat : null,
lng : null
}
router.post("/", (req,res) => {
location.lat = req.body.lat;
location.lng = req.body.lag;
res.send({test : "hi"});
});
module.exports =router;