mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 19:36:44 +00:00
fix: middleware position
This commit is contained in:
parent
d694a7b483
commit
c6fc1b65b8
@ -98,7 +98,7 @@ export function registerMiddlewares(app: Application, options: ApplicationOption
|
|||||||
|
|
||||||
app.use(db2resource, { tag: 'db2resource', after: 'dataWrapping' });
|
app.use(db2resource, { tag: 'db2resource', after: 'dataWrapping' });
|
||||||
app.use(app.resourcer.restApiMiddleware({ skipIfDataSourceExists: true }), { tag: 'restApi', after: 'db2resource' });
|
app.use(app.resourcer.restApiMiddleware({ skipIfDataSourceExists: true }), { tag: 'restApi', after: 'db2resource' });
|
||||||
app.use(app.dataSourceManager.middleware(), { tag: 'dataSource', after: 'dataWrapping' });
|
app.use(app.dataSourceManager.middleware(), { tag: 'dataSource', after: 'restApi' });
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createAppProxy = (app: Application) => {
|
export const createAppProxy = (app: Application) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user