This commit is contained in:
robin
2022-05-21 06:48:12 +08:00
parent b5f918776e
commit 96333ae7a9
45 changed files with 650 additions and 64 deletions
+14
View File
@@ -0,0 +1,14 @@
'use strict';
/*响应时间*/
module.exports = {
sort: 1, //排序
use : true, // 是否使用
fun : async (ctx, next, app) => {
// console.log(ctx, next, options);
// const timetaken = `${ctx.request.method}${ctx.request.url} 响应时间`
// console.time(timetaken)
// app.logger.debug("123")
await next()
// console.timeEnd(timetaken)
}
}