Skip to main content
Module

x/abc/docs/static_files.md

A better Deno framework to create web application.
Latest
File

Static Files

static registers a new route with path prefix to serve static files from the provided root directory. For example, a request to /static/js/main.js will fetch and serve assets/js/main.js file.

app.static("/static", "assets");

abc.file() registers a new route with path to serve a static file.

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