Skip to main content
Go to Latest
function staticFileMiddleware
Re-export
import { staticFileMiddleware } from "https://deno.land/x/frugal@0.2.1/docs/dep/frugal/frugal_oak.ts";

Middleware handling static files in the public directory.

if no file matches the request, the middleware will try to serve ${request.url.pathname}/index.html.

Parameters

unnamed 0: Config