app.use(async function(ctx, next) { switch (ctx.hostname) { case 'example.com': case 'www.example.com': return await subdomain.apply(this, [ctx, next]) } return await next() })
app.use(async function(ctx, next) { switch (ctx.hostname) { case 'example.com': case 'www.example.com': return await subdomain.apply(this, [ctx, next]) } return await next() })