Fix upload routes & PageId reference
This commit is contained in:
parent
f7e4c535f8
commit
22611612e5
@ -186,7 +186,7 @@ class Page extends Controller {
|
||||
const node_obj = new Node({
|
||||
Type: node.Type,
|
||||
Value: node.Value,
|
||||
PageId,
|
||||
PageId: page.UUID,
|
||||
CreatedUserId: req.user._id,
|
||||
UpdateUserId: req.user._id,
|
||||
})
|
||||
@ -233,7 +233,7 @@ class Page extends Controller {
|
||||
const node_obj = new Node({
|
||||
Type: node.Type,
|
||||
Value: node.Value,
|
||||
PageId,
|
||||
PageId: page.UUID,
|
||||
CreatedUserId: req.user._id,
|
||||
UpdateUserId: req.user._id,
|
||||
})
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user