Skip to main content
Module

x/abc/app.ts>Application#file

A better Deno framework to create web application.
Latest
method Application.prototype.file
import { Application } from "https://deno.land/x/abc@v1.3.3/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