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

x/ash/middleware/static.ts>default

A stylish web framework for Deno!
Latest
class default
extends Middleware
import { default } from "https://deno.land/x/ash@1.3.6/middleware/static.ts";

Constructors

new
default(staticPath?: string, staticRoute?: string)

Creates an AshStaticMiddleware instance.

Properties

private
regexp: RegExp
private
staticPath: string
private
staticRoute: string

Methods

handle(req: Request, next: Function): string