Skip to content

Commit

Permalink
feat: add root router (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
adaex authored Nov 21, 2021
1 parent 8538565 commit 5379f6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/service/CoaHttp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class CoaHttp<T extends CoaContext> {
})
// 注册常用路由
this.router.on('GET', baseUrl + 'version', async () => this.env.version)
this.router.on('ALL', '/', async () => '')
this.router.on('GET', '/health', async () => '')
this.router.on('GET', '/favicon.ico', async () => '')
}
Expand Down

0 comments on commit 5379f6d

Please sign in to comment.