Module

x/abc/app.ts>Application#file

A better Deno framework to create web application.
Go to Latest
method Application.prototype.file
import { Application } from "https://dotland.deno.dev/x/abc@v1.2.4/app.ts";

Register a new route with path to serve a static file with optional route-level middleware.

app.file("/", "public/index.html");

Parameters

path: string
filepath: string