mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 17:04:13 +00:00
Remove content manager upload route
This commit is contained in:
parent
5f9c5341c2
commit
fb41211d00
@ -64,14 +64,6 @@
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/explorer/upload",
|
||||
"handler": "ContentManager.uploadFile",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/explorer/:model",
|
||||
|
||||
@ -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);
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user