Fix malformed url

This commit is contained in:
monoid 2023-01-14 03:43:43 +09:00
parent 56ed63b25f
commit cb4766cc17
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { HandlerContext, Handlers, PageProps } from "$fresh/server.ts"; import { HandlerContext, Handlers, PageProps, RouteConfig } from "$fresh/server.ts";
import { asset, Head } from "$fresh/runtime.ts"; import { asset, Head } from "$fresh/runtime.ts";
import { import {
decodePath, decodePath,
@ -243,3 +243,7 @@ export default function DirLists(props: PageProps<DirOrFileProps>) {
</> </>
); );
} }
export const config : RouteConfig = {
routeOverride: "/dir/**{/}?"
}