INNER CODE UNIT · TypeScript

api

vanxh/openbio · src/trpc/server.ts:14

export const api = createCaller(async () => {
  const h = await headers();
  return createTRPCContext({
    req: {
      headers: h,
      ip: h.get('x-real-ip') ?? undefined,
    } as unknown as NextRequest,
  });
});

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…