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

x/oak_nest/src/factorys/nest.factory.ts>NestFactory.useStaticAssets

Refer to nestjs to realize some common functions for Deno
Go to Latest
method NestFactory.useStaticAssets
import { NestFactory } from "https://deno.land/x/oak_nest@v1.14.2/src/factorys/nest.factory.ts";

Sets a base directory for public assets.

Examples

app.useStaticAssets('public')

Parameters

path: string
optional
options: StaticOptions = [UNSUPPORTED]