---
title: Traced Route Handlers
lastModified: "2026-10-14T23:20:34-07:00"
lastAuthor: Kaylee
---
```ts title="src/routes/api/c15t/[...path]/+server.ts"
import { createConsentRoute } from '@c15t/svelte/kit';

import { traceConsent } from '#lib/server/trace-consent.js';

const handlers = createConsentRoute({ proxy: true });

export const GET = traceConsent(handlers.GET);
export const POST = traceConsent(handlers.POST);
export const PATCH = traceConsent(handlers.PATCH);
export const PUT = traceConsent(handlers.PUT);
export const DELETE = traceConsent(handlers.DELETE);
export const OPTIONS = traceConsent(handlers.OPTIONS);
```
