Module

x/fresh/src/server/mod.ts>RouteConfig

The next-gen web framework.
Extremely Popular
Latest
interface RouteConfig
import { type RouteConfig } from "https://dotland.deno.dev/x/fresh@1.7.3/src/server/mod.ts";

Properties

optional
routeOverride: string

A route override for the page. This is useful for pages where the route can not be expressed through the filesystem routing capabilities.

The route override must be a path-to-regexp compatible route matcher.

optional
csp: boolean

If Content-Security-Policy should be enabled for this page. If 'true', a locked down policy will be used that allows only the scripts and styles that are generated by Fresh. Additional scripts and styles can be added using the useCSP hook.

optional
skipInheritedLayouts: boolean

Skip already inherited layouts Default: false

optional
skipAppWrapper: boolean

Skip rendering the routes/_app template Default: false

import RouteConfig
import { RouteConfig } from "https://dotland.deno.dev/x/fresh@1.7.3/src/server/mod.ts";