6 lines
147 B
TypeScript
6 lines
147 B
TypeScript
import type { FastifyRequest } from 'fastify';
|
|
|
|
export async function timestampHook(request: FastifyRequest) {
|
|
request.timestamp = Date.now();
|
|
}
|