Documentation / @zerotal/core / storage / mountsFrom
Function: mountsFrom()
mountsFrom(
config):Mount[]
Defined in: storage/StorageFilesMiddleware.ts:136
Build the mount list from a storage config, in longest-prefix-first order.
Also enforces the one rule that keeps the storage root private: a local disk
served without signed has to live inside the public directory. Checked
here because this runs at boot, so an unsafe config fails before the server
accepts a request rather than the first time someone guesses a path.
Parameters
config
Returns
Mount[]