|
|
|
@ -21,9 +21,8 @@ module.exports = exports = {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
post: {
|
|
|
|
|
// FIXME - files, not file. Fix in front-end!
|
|
|
|
|
// Upload the file in the 'uploaded_file' key to the specified file ref node
|
|
|
|
|
'/file/upload/:PageId/:NodeId/:FilesId': [
|
|
|
|
|
'/upload/:PageId/:NodeId/:FilesId': [
|
|
|
|
|
'middleware::auth:ApiRoute',
|
|
|
|
|
['middleware::api:DataInjection', { access_level: 'update' }],
|
|
|
|
|
'middleware::upload:UploadFile',
|
|
|
|
|