feat(server): trailing slash configuration (#1291)

This commit is contained in:
Reed von Redwitz
2023-06-15 19:01:07 +02:00
committed by GitHub
parent 80306563d2
commit f5f8928c89
8 changed files with 106 additions and 1 deletions
+9
View File
@@ -19,6 +19,15 @@ export interface FreshOptions {
render?: RenderFunction;
plugins?: Plugin[];
staticDir?: string;
router?: RouterOptions;
}
export interface RouterOptions {
/**
* Controls whether Fresh will append a trailing slash to the URL.
* @default {false}
*/
trailingSlash?: boolean;
}
export type RenderFunction = (