mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 07:03:25 +00:00
10 lines
294 B
TypeScript
10 lines
294 B
TypeScript
import { HttpContext } from '@adonisjs/core/http';
|
|
import logger from '@adonisjs/core/services/logger';
|
|
|
|
export default class LogRequest {
|
|
async handle({ request }: HttpContext, next: () => Promise<void>) {
|
|
logger.info(`-> ${request.method()}: ${request.url()}`);
|
|
await next();
|
|
}
|
|
}
|