|
@@ -5,7 +5,6 @@ import * as koa from '@midwayjs/koa';
|
|
|
import * as typegoose from '@midwayjs/typegoose';
|
|
|
import * as Typegoose from '@typegoose/typegoose';
|
|
|
import { ResponseMiddleware } from './middleware/response.middleware';
|
|
|
-import { DefaultErrorFilter } from './filter/default.filter';
|
|
|
import * as axios from '@midwayjs/axios';
|
|
|
import { ServiceError, FrameworkErrorEnum } from './error/service.error';
|
|
|
import { IMidwayContainer, Inject, MidwayConfigService } from '@midwayjs/core';
|
|
@@ -72,7 +71,6 @@ export class FreeConfiguration {
|
|
|
async onReady(container: IMidwayContainer) {
|
|
|
// TODO something
|
|
|
this.app.getMiddleware().insertLast(ResponseMiddleware);
|
|
|
- this.app.useFilter([DefaultErrorFilter]);
|
|
|
// typegoose设置
|
|
|
Typegoose.setGlobalOptions({
|
|
|
schemaOptions: {
|