Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dropserver_app/approutes.ts>RoutesBuilder

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

RoutesBuilder is a convenience class that helps you create application routes for the createApp function using a a familiar pattern.

Methods

add(
method: string,
path: string | Path,
auth: Auth,
handler: Handler,
)

Add a route handler

Create a static file handler with the passed options. Static file handlers created this way are handled by the Dropserver host and do not require a running sandbox, saving resources.