fix: change MultiHandler back to Handlers (#1396)

This commit is contained in:
Marvin Hagemeister
2023-07-03 09:57:46 +02:00
committed by GitHub
parent eb53d53ab8
commit 16be99e69b
32 changed files with 135 additions and 66 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { RouteConfig } from "$fresh/server.ts";
import { MultiHandler } from "$fresh/server.ts";
import { Handlers } from "$fresh/server.ts";
import { parse } from "$std/semver/mod.ts";
import VERSIONS from "../../versions.json" assert { type: "json" };
import { extname } from "$std/path/mod.ts";
@@ -16,7 +16,7 @@ const contentTypes = new Map([
[".wasm", "application/wasm"],
]);
export const handler: MultiHandler = {
export const handler: Handlers = {
async GET(req, ctx) {
const accept = req.headers.get("Accept");
const isHTML = accept?.includes("text/html");