Display people created in title
This commit is contained in:
parent
9672eaab56
commit
7a52ff4fdb
4 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ module.exports = async (req, res) => {
|
|||
people = people.map(person => ({
|
||||
name: person.name,
|
||||
availability: person.availability,
|
||||
created: person.created,
|
||||
}));
|
||||
|
||||
res.send({
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ module.exports = async (req, res) => {
|
|||
res.send({
|
||||
name: personName,
|
||||
availability: personResult.availability,
|
||||
created: personResult.created,
|
||||
});
|
||||
} else {
|
||||
res.sendStatus(404);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue