Skip to main content
Module

x/fastro/server/mod.ts>Router

Fast and simple web application framework for deno
Go to Latest
interface Router
Re-export
import { type Router } from "https://deno.land/x/fastro@v0.60.1/server/mod.ts";

Properties

routes: Map<string, Route>

Methods

get(path: PathArgument, ...handlers: HandlerArgument[]): Router
post(path: PathArgument, ...handlers: HandlerArgument[]): Router
put(path: PathArgument, ...handlers: HandlerArgument[]): Router
delete(path: PathArgument, ...handlers: HandlerArgument[]): Router
patch(path: PathArgument, ...handlers: HandlerArgument[]): Router
head(path: PathArgument, ...handlers: HandlerArgument[]): Router
options(path: PathArgument, ...handlers: HandlerArgument[]): Router