# Koa2基本学习

const Koa = require('koa');

const app = new Koa();

app.use(async (ctx, next) => {
  await next();
  ctx.body = 'Hello Koa2';
});

app.listen(8000, () => {
  console.log('app started at port http://localhost:8000');
});
发布日期: 1/4/2021, 3:15:05 AM