{"size": 468, "ext": "js", "max_stars_repo_path": "routes/index.js", "max_stars_repo_name": "hecki97/Aegir-Backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/index.js", "max_issues_repo_name": "hecki97/Aegir-Backend", "max_issues_repo_issues_event_min_datetime": "2020-07-24T23:21:55.000Z", "max_issues_repo_issues_event_max_datetime": "2020-07-25T00:09:19.000Z", "max_forks_repo_path": "routes/index.js", "max_forks_repo_name": "hecki97/Aegir-Backend", "max_forks_repo_forks_event_min_datetime": "2020-07-25T00:13:06.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-25T00:13:06.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 22.2857142857, "max_line_length": 66, "alphanum_fraction": 0.6452991453}
const routes = require('express').Router();
const feed = require('./rss-feed');

routes.get('/', (req, res) => {
  res.status(200).json({ message: 'Service is up and running!' });
});

// Simple logger that is invoked for every request.
routes.use((req, res, next) => {
  // log each request to the console
  console.log(req.method, req.url);
  console.log(req.body);

  // continue with the request
  next();
});

routes.use('/feed', feed);

module.exports = routes;
