Cleanup and modernize S3Adapter to ES6 syntax.

This commit is contained in:
Nikita Lutsenko
2016-02-09 19:52:25 -08:00
parent fe5e511ca3
commit 07c9c1d648
6 changed files with 96 additions and 89 deletions

View File

@@ -0,0 +1,22 @@
// Files Adapter
//
// Allows you to change the file storage mechanism.
//
// Adapter classes must implement the following functions:
// * createFile(config, filename, data)
// * getFileData(config, filename)
// * getFileLocation(config, request, filename)
//
// Default is GridStoreAdapter, which requires mongo
// and for the API server to be using the ExportAdapter
// database adapter.
export class FilesAdapter {
createFile(config, filename, data) { }
getFileData(config, filename) { }
getFileLocation(config, filename) { }
}
export default FilesAdapter;