DE
Beta-Übersetzung

@core / consent

1.1.0 ▾
verifiziertMIT
GitHub

DSGVO-Cookie-Einwilligung: Banner mit gleichwertigem Ablehnen, Kategorien, Nachweis, ConsentGate und Consent Mode v2

Code9 DateienKontext~743 TokensPrüfung bestanden

Der genaue Baum, der nach .genpmignore eingebunden wird. Gepinnt an

src/lib/consent/adapters/hono.tsschreibgeschützt · 37d6a8f
// Adaptador Hono: `app.route('/api/consent', consentRoutes({ cookiesByCategory: { analytics: ['_ga'], marketing: ['_fbp'] } }))`.
import { Hono } from 'hono';
import { handleConsent } from './http.ts';

export function consentRoutes(opts: Parameters<typeof handleConsent>[1] = {}) {
  return new Hono().get('/', (c) => handleConsent(c.req.raw, opts)).post('/', (c) => handleConsent(c.req.raw, opts));
}

@core/consent melden

Melde dich mit GitHub an, um ein Paket zu melden.