Merge pull request #13105 from jorgeRambla/fix/upload-plugin

Fix upload plugin
This commit is contained in:
Jean-Sébastien Herbaux 2022-06-15 09:45:42 +02:00 committed by GitHub
commit aeb21ff85e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View File

@ -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 },

View File

@ -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',