import { type Fastro } from "https://deno.land/x/fastro@v0.88.1/http/server/types.ts";
Defines the application endpoint, middleware, group, and serve
Example:
import fastro from "https://fastro.deno.dev/mod.ts";
const f = new fastro();
f.get("/", () => "Hello, World!");
await f.serve();
Properties
serve: (options?: { port?: number; onListen?: ListenHandler; }) => Promise<void>
Methods
group(mf: ModuleFunction): Promise<Fastro>
getPages(): Record<string, Page>
getRoutes(): Record<string, Handler>