const express = require('express')
var router = express.Router()
var data = [
{
"id": 1,
"title": "text 1"
},
{
"id": 2,
"title": "text 2"
},
{
"id": 3,
"title": "text 3"
}
]
router.get('/', (req, res, next) => {
for (var i = 0; i < data.length; i++) {
res.send(data[i].title)
}
next()
})
module.exports = router