(ctx, next)
| 1 | import { MiddlewareFunc } from '../../../../src/index.js'; |
| 2 | |
| 3 | export const hello: MiddlewareFunc = async (ctx, next) => { |
| 4 | ctx.body = 'Hello World!'; |
| 5 | console.log(ctx.app.type, ctx.app.server, ctx.app.ctxStorage.getStore()?.performanceStarttime); |
| 6 | console.log(ctx.performanceStarttime); |
| 7 | const res = await ctx.curl('https://eggjs.org'); |
| 8 | console.log(res.status); |
| 9 | |
| 10 | // egg watcher |
| 11 | // console.log('egg watcher', ctx.app.watcher); |
| 12 | await next(); |
| 13 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…