|
@@ -1,8 +1,6 @@
|
|
import { App, Configuration } from '@midwayjs/decorator';
|
|
import { App, Configuration } from '@midwayjs/decorator';
|
|
import * as DefaultConfig from './config/config.default';
|
|
import * as DefaultConfig from './config/config.default';
|
|
import * as koa from '@midwayjs/koa';
|
|
import * as koa from '@midwayjs/koa';
|
|
-// api文档
|
|
|
|
-import * as swagger from '@midwayjs/swagger';
|
|
|
|
// 数据库
|
|
// 数据库
|
|
import * as typegoose from '@midwayjs/typegoose';
|
|
import * as typegoose from '@midwayjs/typegoose';
|
|
import * as Typegoose from '@typegoose/typegoose';
|
|
import * as Typegoose from '@typegoose/typegoose';
|
|
@@ -10,14 +8,7 @@ import { ResponseMiddleware } from './middleware/response.middleware';
|
|
import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
|
|
import { IMidwayApplication, IMidwayContainer } from '@midwayjs/core';
|
|
@Configuration({
|
|
@Configuration({
|
|
namespace: 'free',
|
|
namespace: 'free',
|
|
- imports: [
|
|
|
|
- koa,
|
|
|
|
- typegoose,
|
|
|
|
- {
|
|
|
|
- component: swagger,
|
|
|
|
- enabledEnvironment: ['local'],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ imports: [koa, typegoose],
|
|
importConfigs: [
|
|
importConfigs: [
|
|
{
|
|
{
|
|
default: DefaultConfig,
|
|
default: DefaultConfig,
|