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

x/dropserver_app/approutes.ts>RoutesBuilder#add

Library that helps you create Dropserver applications
Go to Latest
method RoutesBuilder.prototype.add
import { RoutesBuilder } from "https://deno.land/x/dropserver_app@v0.2.1/approutes.ts";

Add a route handler

Parameters

method: string

"get", "post", etc...

path: string | Path

can be string like "/create/" or Path object

auth: Auth

specifies the required authorization for this route

handler: Handler

the route handler