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 { 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: MultiHandler<Data> = {
|
||||
export const handler: Handlers<Data> = {
|
||||
async GET(_req, ctx) {
|
||||
const slug = ctx.params.slug;
|
||||
if (slug === "") {
|
||||
|
||||
Reference in New Issue
Block a user