I'm a rookie in nodejs, and I'm learning Koa. I got some problem about this code.
const Koa = require('koa');
const app = new Koa();
app.use(async function(ctx, next) {
await next();
if (ctx.body || !ctx.idempotent) return ;
ctx.status = 404;
});
What is the meaning of await next() and if statement after that ?