Display people created in title

This commit is contained in:
Ben Grant 2021-05-13 21:30:27 +10:00
parent 9672eaab56
commit 7a52ff4fdb
4 changed files with 7 additions and 0 deletions

View file

@ -7,6 +7,7 @@ module.exports = async (req, res) => {
people = people.map(person => ({
name: person.name,
availability: person.availability,
created: person.created,
}));
res.send({

View file

@ -21,6 +21,7 @@ module.exports = async (req, res) => {
res.send({
name: personName,
availability: personResult.availability,
created: personResult.created,
});
} else {
res.sendStatus(404);