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