Files can be added to templates and managed in a dedicated "Files" view.

Mosaico integration in progress. The files seem to be working for Mosaico.
This commit is contained in:
Tomas Bures 2018-03-24 23:55:50 +01:00
parent c85f2d4440
commit b5cdf57f72
23 changed files with 506 additions and 164 deletions

View file

@ -22,7 +22,8 @@ class ChangedError extends InteroperableError {
class NotFoundError extends InteroperableError {
constructor(msg, data) {
super('NotFoundError', msg, data);
super('NotFoundError', msg || 'Not Found', data);
this.status = 404;
}
}
@ -82,7 +83,7 @@ class NamespaceNotFoundError extends InteroperableError {
class PermissionDeniedError extends InteroperableError {
constructor(msg, data) {
super('PermissionDeniedError', msg, data);
super('PermissionDeniedError', msg || 'Permission Denied', data);
this.status = 403;
}
}