Archived
2

implemented /model/files

This commit is contained in:
VLE2FE
2020-08-28 09:04:05 +02:00
parent 349ff16191
commit c891933d11
4 changed files with 68 additions and 0 deletions

View File

@ -32,4 +32,11 @@ export default class ModelValidate { // validate input for model
}).validate(data, {stripUnknown: true});
return error !== undefined? null : value;
}
static fileOutput (data) {
return {
name: data.name,
size: data.data.length
}
}
}