mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:38:51 +00:00
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