fix: change MultiHandler back to Handlers (#1396)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { asset, Head } from "$fresh/runtime.ts";
|
||||
import { MultiHandler, PageProps } from "$fresh/server.ts";
|
||||
import { Handlers, PageProps } from "$fresh/server.ts";
|
||||
import Counter from "../islands/Counter.tsx";
|
||||
import LemonDrop from "../islands/LemonDrop.tsx";
|
||||
import Footer from "../components/Footer.tsx";
|
||||
@@ -18,7 +18,7 @@ function isOpenGraphUA(header: string | null): boolean {
|
||||
return header.startsWith("Twitterbot") || header.startsWith("Slackbot");
|
||||
}
|
||||
|
||||
export const handler: MultiHandler = {
|
||||
export const handler: Handlers = {
|
||||
GET(req, ctx) {
|
||||
const accept = req.headers.get("accept");
|
||||
const userAgent = req.headers.get("user-agent");
|
||||
|
||||
Reference in New Issue
Block a user