mirror of
https://github.com/strapi/strapi.git
synced 2025-09-14 19:19:43 +00:00
Merge pull request #13105 from jorgeRambla/fix/upload-plugin
Fix upload plugin
This commit is contained in:
commit
aeb21ff85e
@ -37,10 +37,6 @@ module.exports = {
|
|||||||
ctx.body = await sanitizeOutput(file, ctx);
|
ctx.body = await sanitizeOutput(file, ctx);
|
||||||
},
|
},
|
||||||
|
|
||||||
async count(ctx) {
|
|
||||||
ctx.body = await getService('upload').count(ctx.query);
|
|
||||||
},
|
|
||||||
|
|
||||||
async destroy(ctx) {
|
async destroy(ctx) {
|
||||||
const {
|
const {
|
||||||
params: { id },
|
params: { id },
|
||||||
|
@ -8,11 +8,6 @@ module.exports = {
|
|||||||
path: '/',
|
path: '/',
|
||||||
handler: 'content-api.upload',
|
handler: 'content-api.upload',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
method: 'GET',
|
|
||||||
path: '/files/count',
|
|
||||||
handler: 'content-api.count',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/files',
|
path: '/files',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user