{"size": 436, "ext": "js", "max_stars_repo_path": "test/application.js", "max_stars_repo_name": "lipd/mini-koa", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/application.js", "max_issues_repo_name": "lipd/mini-koa", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/application.js", "max_forks_repo_name": "lipd/mini-koa", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.5333333333, "max_line_length": 60, "alphanum_fraction": 0.5619266055}
const Mini = require('../');

const app = new Mini();

const m1 = async (ctx, next) => {
  console.log(1);
  await next();
  console.log(5);
};

const m2 = async (ctx, next) => {
  console.log(2);
  await next();
  console.log(4);
};

const m3 = async (ctx, next) => {
  console.log(3);
  await next();
};

app
  .use(m1)
  .use(m2)
  .use(m3);

app.listen(3000, () => {
  console.log('server is running on http://localhost:3000');
});
