Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_nest/modules/postgres/example/deps.ts>NestFactory.useStaticAssets

Refer to nestjs to realize some common functions for Deno
Go to Latest
method NestFactory.useStaticAssets
Re-export
import { NestFactory } from "https://deno.land/x/oak_nest@v2.0.0/modules/postgres/example/deps.ts";

Sets a base directory for public assets.

Examples

app.useStaticAssets('public')

Parameters

path: string
optional
options: StaticOptions = [UNSUPPORTED]