Constructor
new Assetsmodule()
- Source:
Extends
Members
assetTypes
- Description:
- Store of all registered asset types
- Source:
Store of all registered asset types
Methods
createFsWrapper(assetData) → {AbstractAsset}
- Description:
- Creates an asset wrapper for file system operations
- Source:
Parameters:
Name |
Type |
Description |
assetData |
object
|
The database data |
Returns:
-
Type
-
AbstractAsset
(async) delete()
- Source:
(async) deleteMany()
- Source:
(async) init()
- Source:
(async) insert()
- Source:
(async) onRequest(req)
- Description:
- Handles incoming file uploads
- Source:
Parameters:
Name |
Type |
Description |
req |
external:ExpressRequest
|
|
- Source:
Returns:
-
Type
-
Promise
registerAssetType(assetClass)
- Description:
- Registers a new asset repository as an assets store
- Source:
Parameters:
Name |
Type |
Description |
assetClass |
AbstractAsset
|
The AbstractAsset class |
(async) serveAssetHandler(req, res, next)
- Description:
- Serves a single asset or thumbnail
- Source:
Parameters:
Name |
Type |
Description |
req |
external:ExpressRequest
|
|
res |
external:ExpressResponse
|
|
next |
function
|
|
(async) setValues()
- Source:
(async) update()
- Source: