Module

x/ash/mod.ts>AshStaticMiddleware

A stylish web framework for Deno!
Latest
class AshStaticMiddleware
extends Middleware
import { AshStaticMiddleware } from "https://dotland.deno.dev/x/ash@1.3.6/mod.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