From 70c2cd908586153b7f0e143eefdcc9db525216b1 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 29 Mar 2021 14:01:54 +0800 Subject: [PATCH] fix: adding upload action to the blacklist --- packages/api/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {},