Router cleanup (#2099)

This commit is contained in:
Marvin Hagemeister
2023-11-30 14:08:05 +01:00
committed by GitHub
parent a0a756a1ec
commit 8ddc21eb90
15 changed files with 398 additions and 496 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import { MiddlewareHandlerContext } from "$fresh/server.ts";
import { type FreshContext } from "$fresh/server.ts";
import type { Event } from "$ga4";
import { GA4Report, isDocument, isServerError } from "$ga4";
@@ -8,7 +8,7 @@ let showedMissingEnvWarning = false;
function ga4(
request: Request,
conn: MiddlewareHandlerContext,
conn: FreshContext,
response: Response,
_start: number,
error?: unknown,
@@ -80,7 +80,7 @@ function ga4(
export async function handler(
req: Request,
ctx: MiddlewareHandlerContext,
ctx: FreshContext,
): Promise<Response> {
let err;
let res: Response;