fix: change MultiHandler back to Handlers (#1396)
This commit is contained in:
+2
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user