Module

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

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

Parameters

fn: (req: Request, ctx: RouteContext<void, T>) => ComponentChildren | Response | Promise<ComponentChildren | Response>

Returns

AsyncRoute<void, T>