Commit 08cd3f18 authored by Jasper Verbeet's avatar Jasper Verbeet 🙇🏻

updates

parent 43c70456
{"status":false,"origin":"Eindhoven","destination":"Helsinki","width":233,"height":300,"depth":300,"weight":5000,"new":false,"opened":true,"added_time":123,"current_weight":5000}
\ No newline at end of file
{"status":true,"origin":"Eindhoven","destination":"Helsinki","width":233,"height":300,"depth":300,"weight":5000,"new":false,"opened":true,"added_time":123,"current_weight":5000}
\ No newline at end of file
......@@ -21,6 +21,7 @@ const dbPath = path.join(__dirname, 'db.json');
// this will let us get the data from a POST
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use(express.static('public'))
const port = process.env.PORT || 8080; // set our port
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment