EngineStaticFiles extension

Engine/Router static-file helpers. Lives in the adapter package so foundation routed does not depend on or re-export storage APIs.

on

Methods

signedStorage(String relativePath, Filesystem storage, {required StorageSignedUrlSigner signer, String rootPath = '', String indexFile = 'index.html'}) → void

Available on Engine, provided by the EngineStaticFiles extension

Mounts private storage objects behind time-limited signed URLs.
static(String relativePath, String rootPath, {FileSystem? fileSystem, bool listDirectory = false}) → void

Available on Engine, provided by the EngineStaticFiles extension

Mounts a directory at relativePath.
staticFile(String relativePath, String filePath, [FileSystem? fs]) → void

Available on Engine, provided by the EngineStaticFiles extension

Mounts one file at relativePath.
staticFileFS(String relativePath, String filePath, Dir dir) → void

Available on Engine, provided by the EngineStaticFiles extension

Mounts one file using an explicit parent directory dir.
staticFS(String relativePath, Dir dir) → void

Available on Engine, provided by the EngineStaticFiles extension

Mounts a directory using an explicit dir definition.
staticStorage(String relativePath, Filesystem storage, {String rootPath = '', bool listDirectory = false, String indexFile = 'index.html'}) → void

Available on Engine, provided by the EngineStaticFiles extension

Mounts a directory from an asynchronous storage_fs backend.