Added appdata support

This commit is contained in:
NGPixel
2017-01-09 22:45:56 -05:00
parent ec6f32d29c
commit f8161f2e7a
9 changed files with 71 additions and 28 deletions

View File

@@ -23,10 +23,9 @@ module.exports = {
/**
* Initialize Local Data Storage model
*
* @param {Object} appconfig The application config
* @return {Object} Uploads model instance
*/
init(appconfig) {
init() {
this._uploadsPath = path.resolve(ROOTPATH, appconfig.paths.repo, 'uploads');
this._uploadsThumbsPath = path.resolve(ROOTPATH, appconfig.paths.data, 'thumbs');