mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
feat: add create collection controller + validator
This commit is contained in:
9
app/middleware/log_request.ts
Normal file
9
app/middleware/log_request.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user