Remove content manager upload route

This commit is contained in:
Alexandre Bodin 2019-08-01 08:04:44 +02:00
parent 5f9c5341c2
commit fb41211d00
2 changed files with 0 additions and 19 deletions

View File

@ -64,14 +64,6 @@
"policies": []
}
},
{
"method": "POST",
"path": "/explorer/upload",
"handler": "ContentManager.uploadFile",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/explorer/:model",

View File

@ -144,15 +144,4 @@ module.exports = {
ctx.request.query
);
},
/**
* Handle uploads in the explorer
*/
async uploadFile(ctx) {
if (!strapi.plugins.upload) {
ctx.send({ error: 'uploadPlugin.notInstalled' }, 400);
}
return strapi.plugins.upload.controllers.upload.upload(ctx);
},
};