refactor: changed Handlers type to MultiHandler (#1360)

This commit is contained in:
Aushwin
2023-06-28 12:52:48 +00:00
committed by GitHub
parent a30c6bdf5c
commit 851f8d60aa
26 changed files with 64 additions and 58 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { asset, Head } from "$fresh/runtime.ts";
import { Handlers, PageProps } from "$fresh/server.ts";
import { MultiHandler, PageProps } from "$fresh/server.ts";
import { frontMatter, gfm } from "../../utils/markdown.ts";
import Header from "../../components/Header.tsx";
@@ -21,7 +21,7 @@ interface Page extends TableOfContentsEntry {
data: Record<string, unknown>;
}
export const handler: Handlers<Data> = {
export const handler: MultiHandler<Data> = {
async GET(_req, ctx) {
const slug = ctx.params.slug;
if (slug === "") {