Skip to content

Commit ed8a3aa

Browse files
authored
Merge pull request #4 from WittBulter/fix-custom-response
fix: fix custom response
2 parents 02c043f + 745b42d commit ed8a3aa

File tree

5 files changed

+521
-518
lines changed

5 files changed

+521
-518
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ the best practice of building Koa2 with TypeScript. [中文](/README_CN.md)
77
1. clone repo. `git clone [email protected]:DhyanaChina/koa2-typescript-guide.git`
88
2. install dependencies. `npm i`
99
3. configuring database information.
10+
4. the docs about `koa-custom-response`,plaese see: [koa-custom-response](https://github.com/DhyanaChina/koa-custom-response)
11+
1012

1113
### catalog
1214

README_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
1. clone 项目. `git clone [email protected]:DhyanaChina/koa2-typescript-guide.git`
88
2. 安装依赖. `npm i`
99
3. 配置你的数据库信息,在 `config/connection.ts` 中。(不使用数据库请移除相关代码)
10+
4. 有关 `koa-custom-response` 文档,请看这里:[koa-custom-response](https://github.com/DhyanaChina/koa-custom-response)
1011

1112
### 目录
1213

config/application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import * as Koa from 'koa'
22
import * as kcors from 'kcors'
33
import * as bodyParser from 'koa-bodyparser'
44
import * as logger from 'koa-logger'
5-
import * as KoaCustomResponse from 'koa-custom-response'
5+
import { KoaCustomResponse } from 'koa-custom-response'
66
import { router } from './routers'
77
import { Environment } from './environments'
8-
import './connection'
8+
// import './connection'
99

1010
export const createServer = async(): Promise<any> => {
1111
const app = new Koa()

0 commit comments

Comments
 (0)