Initial commit
This commit is contained in:
commit
15d4e2f126
37 changed files with 12580 additions and 0 deletions
21
crabfit-backend/routes/getEvent.js
Normal file
21
crabfit-backend/routes/getEvent.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
module.exports = (req, res) => {
|
||||
const { eventId } = req.params;
|
||||
|
||||
if (eventId) {
|
||||
res.send({
|
||||
id: 'event-name-4701240',
|
||||
name: 'Event name',
|
||||
eventCreated: 379642017932,
|
||||
timezone: '247',
|
||||
startTime: 0900,
|
||||
endTime: 1700,
|
||||
dates: [
|
||||
'26022021',
|
||||
'27022021',
|
||||
'28022021',
|
||||
],
|
||||
});
|
||||
} else {
|
||||
res.sendStatus(404);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue