Initial commit
This commit is contained in:
commit
15d4e2f126
37 changed files with 12580 additions and 0 deletions
27
crabfit-backend/routes/getPeople.js
Normal file
27
crabfit-backend/routes/getPeople.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
module.exports = (req, res) => {
|
||||
const { eventId } = req.params;
|
||||
|
||||
if (eventId) {
|
||||
res.send({
|
||||
people: [
|
||||
{
|
||||
name: 'Laura',
|
||||
password: null,
|
||||
eventId: 'event-name-4701240',
|
||||
availability: [
|
||||
[
|
||||
'START',
|
||||
'END',
|
||||
],
|
||||
[
|
||||
'START',
|
||||
'END',
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
} else {
|
||||
res.sendStatus(404);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue