29 lines
674 B
JavaScript
Raw Normal View History

'use strict';
const ACTIONS = {
read: 'plugin::upload.read',
readSettings: 'plugin::upload.settings.read',
create: 'plugin::upload.assets.create',
update: 'plugin::upload.assets.update',
download: 'plugin::upload.assets.download',
copyLink: 'plugin::upload.assets.copy-link',
configureView: 'plugin::upload.configure-view',
};
const ALLOWED_SORT_STRINGS = [
'createdAt:DESC',
'createdAt:ASC',
'name:ASC',
'name:DESC',
'updatedAt:DESC',
'updatedAt:ASC',
];
module.exports = {
ACTIONS,
2022-05-13 16:10:18 +02:00
FOLDER_MODEL_UID: 'plugin::upload.folder',
FILE_MODEL_UID: 'plugin::upload.file',
2022-05-17 15:39:17 +02:00
API_UPLOAD_FOLDER_BASE_NAME: 'API Uploads',
ALLOWED_SORT_STRINGS,
};