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

x/ash/middleware/static.ts>AshStaticMiddleware

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

Constructors

new
AshStaticMiddleware(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