Initial commit

Signed-off-by: mikesir87 <mikesir87@gmail.com>

Imported from dockersamples/101-tutorial, removed other languages
for now, and replaced PWD references with Docker Desktop.
This commit is contained in:
Michael Irwin
2020-02-05 22:04:43 -05:00
commit 5bb26cc53a
79 changed files with 34476 additions and 0 deletions

13
app/src/routes/addItem.js Normal file
View File

@@ -0,0 +1,13 @@
const db = require('../persistence');
const uuid = require('uuid/v4');
module.exports = async (req, res) => {
const item = {
id: uuid(),
name: req.body.name,
completed: false,
};
await db.storeItem(item);
res.send(item);
};