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 atrelativePath. -
staticFile(
String relativePath, String filePath, [FileSystem? fs]) → void -
Available on Engine, provided by the EngineStaticFiles extension
Mounts one file atrelativePath. -
staticFileFS(
String relativePath, String filePath, Dir dir) → void -
Available on Engine, provided by the EngineStaticFiles extension
Mounts one file using an explicit parent directorydir. -
staticFS(
String relativePath, Dir dir) → void -
Available on Engine, provided by the EngineStaticFiles extension
Mounts a directory using an explicitdirdefinition. -
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 asynchronousstorage_fsbackend.