20 lines
246 B
JavaScript
20 lines
246 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = {
|
||
|
'/': {
|
||
|
|
||
|
// Get homepage
|
||
|
get: (req, res) => {
|
||
|
return res.json({
|
||
|
status: 200,
|
||
|
data: {
|
||
|
index: { title: 'Express' },
|
||
|
},
|
||
|
});
|
||
|
},
|
||
|
|
||
|
put: (req, res, next) => {
|
||
|
return next();
|
||
|
},
|
||
|
},
|
||
|
};
|