Skip to main content

Usage example

import { statics } from "https://deno.land/x/oak_static_files@0.0.1/mod.ts";

const router = await statics("path/to/statics", "index.html");

app.use(router.routes());

statics function receive two arguments

  • path Defines the static directory path
  • index Defines the main static file

Dependencies