fix: adding upload action to the blacklist

This commit is contained in:
chenos 2021-03-29 14:01:54 +08:00
parent b9af1cbbd9
commit 70c2cd9085

View File

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