fix: create attachments middleware (#3794)
This commit is contained in:
parent
921696f40b
commit
e410dece22
@ -2,7 +2,7 @@ import actions from '@nocobase/actions';
|
||||
import { createMiddleware, destroyMiddleware } from './attachments';
|
||||
|
||||
export default function ({ app }) {
|
||||
app.resourcer.use(createMiddleware);
|
||||
app.resourcer.use(createMiddleware, { tag: 'createMiddleware', after: 'auth' });
|
||||
app.resourcer.registerActionHandler('upload', actions.create);
|
||||
|
||||
app.resourcer.use(destroyMiddleware);
|
||||
|
Loading…
Reference in New Issue
Block a user