= new Api() const frameworks = require(‘./fun-facts.json’) api.get(‘/‘, () => frameworks) api.get(‘/{id}’, req => frameworks.filter(framework => framework.id === req.pathParams.id )) api.get(‘/random‘, () => frameworks[ Math.floor(Math.random() * frameworks.length) ]) module.exports = api api.js