MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / timestampHook

Function timestampHook

apps/api/src/hooks/timestamp.hook.ts:3–5  ·  view source on GitHub ↗
(request: FastifyRequest)

Source from the content-addressed store, hash-verified

1import type { FastifyRequest } from 'fastify';
2
3export async function timestampHook(request: FastifyRequest) {
4 request.timestamp = Date.now();
5}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected