Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

The next-gen web framework.
Extremely Popular
Go to Latest
function defineApp
import { defineApp } from "https://deno.land/x/fresh@1.6.5/src/server/mod.ts";

Parameters

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

Returns

AsyncLayout<void, T>