Revert
This commit is contained in:
parent
4133cabd52
commit
5b4f06e2e9
@ -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" };
|
|
Loading…
Reference in New Issue
Block a user