1
0
This commit is contained in:
Zef Hemel 2024-01-20 23:00:32 +01:00
parent 4133cabd52
commit 5b4f06e2e9

View File

@ -1,16 +0,0 @@
export default async function handleMarkdown(
request: Request,
ctx: any,
): Promise<Response> {
const resp = await ctx.next(request);
if (resp.status === 404) {
return new Response("", {
status: 200,
headers: { "Content-Type": "text/markdown" },
});
} else {
return resp;
}
}
export const config = { path: "/*.md" };