Initial commit
This commit is contained in:
commit
15d4e2f126
37 changed files with 12580 additions and 0 deletions
15
crabfit-backend/routes/createPerson.js
Normal file
15
crabfit-backend/routes/createPerson.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
module.exports = (req, res) => {
|
||||
const { eventId } = req.params;
|
||||
const { person } = req.body;
|
||||
|
||||
if (eventId) {
|
||||
if (person) {
|
||||
console.log(person);
|
||||
res.sendStatus(201);
|
||||
} else {
|
||||
res.sendStatus(400);
|
||||
}
|
||||
} else {
|
||||
res.sendStatus(404);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue