diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 79a7fc60e..c9da4c0ba 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -66,7 +66,7 @@ api.resourcer.use(async (ctx: actions.Context, next) => { return next(); } const { actionName } = ctx.action.params; - if (['create', 'update', 'destroy', 'sort'].includes(actionName)) { + if (['create', 'update', 'destroy', 'sort', 'upload'].includes(actionName)) { ctx.body = { data: {}, meta: {},