Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Aug 19, 2023
1 parent e273011 commit a15260d
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { join } from 'path';
importConfigs: [join(__dirname, './config')],
})
export class MainConfiguration {
@App()
@App('express')
app: express.Application;

async onReady() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import UnittestConfig from './config/config.unittest.js';
],
})
export class MainConfiguration {
@App()
@App('koa')
app: koa.Application;

async onReady() {
Expand Down
2 changes: 1 addition & 1 deletion v3/midway-framework-koa/boilerplate/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ReportMiddleware } from './middleware/report.middleware';
importConfigs: [join(__dirname, './config')],
})
export class MainConfiguration {
@App()
@App('koa')
app: koa.Application;

async onReady() {
Expand Down
5 changes: 2 additions & 3 deletions v3/midway-framework-web/boilerplate/src/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { App, Configuration, ILifeCycle } from '@midwayjs/core';
import { Application } from 'egg';
import { join } from 'path';
import * as egg from '@midwayjs/web';

Expand All @@ -8,8 +7,8 @@ import * as egg from '@midwayjs/web';
importConfigs: [join(__dirname, './config')],
})
export class MainConfiguration implements ILifeCycle {
@App()
app: Application;
@App('egg')
app: egg.Application;

async onReady() {}
}
2 changes: 1 addition & 1 deletion v3/midway-framework-web/boilerplate/src/controller/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Inject, Controller, Post, Query } from '@midwayjs/core';
import { Context } from 'egg';
import { Context } from '@midwayjs/web';
import { IGetUserResponse } from '../interface';
import { UserService } from '../service/user';

Expand Down
3 changes: 0 additions & 3 deletions v3/midway-serverless-http-new-esm/boilerplate/f.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
service:
name: midway-http

provider:
name: aliyun
starter: '@midwayjs/fc-starter'
3 changes: 0 additions & 3 deletions v3/midway-serverless-http-new/boilerplate/f.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
service:
name: midway-http

provider:
name: aliyun
starter: '@midwayjs/fc-starter'

0 comments on commit a15260d

Please sign in to comment.