mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
add logger
This commit is contained in:
7
dashboard/server/middleware/00-performance-start.ts
Normal file
7
dashboard/server/middleware/00-performance-start.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { logger } from "../Logger"
|
||||
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const start = Date.now();
|
||||
event.context['performance-start'] = start.toString();
|
||||
});
|
||||
Reference in New Issue
Block a user