{"size": 375, "ext": "js", "max_stars_repo_path": "app/app.js", "max_stars_repo_name": "danielmcq/resume", "max_stars_repo_stars_event_min_datetime": "2020-10-06T16:53:27.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-06T16:53:27.000Z", "max_issues_repo_path": "app/app.js", "max_issues_repo_name": "danielmcq/resume", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/app.js", "max_forks_repo_name": "danielmcq/resume", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.7368421053, "max_line_length": 64, "alphanum_fraction": 0.68}
'use strict'

// node libs
const express = require('express')

const errorHandler = require('./middleware/errorHandler')
const logging      = require('./controllers/logging.controller')
const routes       = require('./routes')

module.exports = (opts={})=>{
  const app = express(opts)

  app.use(logging('request'))
  app.use(routes)
  app.use(errorHandler)

  return app
}
