'use strict' const router = require('koa-router')() router.get('/', async function (ctx, next) { await next() const { title } = ctx.state ctx.body = `
Welcome to ${title}