fix: action blacklist for demo
This commit is contained in:
parent
aedce5589d
commit
8be11714b9
@ -66,7 +66,7 @@ api.resourcer.use(async (ctx: actions.Context, next) => {
|
||||
return next();
|
||||
}
|
||||
const { actionName } = ctx.action.params;
|
||||
if (['create', 'update', 'destroy'].includes(actionName)) {
|
||||
if (['create', 'update', 'destroy', 'sort'].includes(actionName)) {
|
||||
ctx.body = {
|
||||
data: {},
|
||||
meta: {},
|
||||
|
Loading…
Reference in New Issue
Block a user