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

x/fresh/server.ts>defineApp

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

Parameters

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

Returns

AsyncLayout<void, T>