deno.land / x / abc@v1.3.3 / docs / static_files.md

static_files.md

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");
abc

Version Info

Tagged at
2 years ago