fix: action blacklist for demo

This commit is contained in:
chenos 2021-03-29 12:00:52 +08:00
parent aedce5589d
commit 8be11714b9

View File

@ -66,7 +66,7 @@ api.resourcer.use(async (ctx: actions.Context, next) => {
return next(); return next();
} }
const { actionName } = ctx.action.params; const { actionName } = ctx.action.params;
if (['create', 'update', 'destroy'].includes(actionName)) { if (['create', 'update', 'destroy', 'sort'].includes(actionName)) {
ctx.body = { ctx.body = {
data: {}, data: {},
meta: {}, meta: {},