Open d1y opened 4 years ago
Like this? Instead of instantiating it via http.createServer
http.createServer
import router from '@koa/router' const monitor = require('koa-monitor') const Router = new router({ prefix: 'monitor' }) Router.use(monitor())
Like this? Instead of instantiating it via
http.createServer