diff --git a/routes/dir/[...path].tsx b/routes/dir/[...path].tsx index 1115c41..b812506 100644 --- a/routes/dir/[...path].tsx +++ b/routes/dir/[...path].tsx @@ -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 { decodePath, @@ -243,3 +243,7 @@ export default function DirLists(props: PageProps) { ); } + +export const config : RouteConfig = { + routeOverride: "/dir/**{/}?" +} \ No newline at end of file