Skip to content

Commit 5379f6d

Browse files
authored
feat: add root router (#11)
1 parent 8538565 commit 5379f6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/service/CoaHttp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export class CoaHttp<T extends CoaContext> {
6464
})
6565
// 注册常用路由
6666
this.router.on('GET', baseUrl + 'version', async () => this.env.version)
67+
this.router.on('ALL', '/', async () => '')
6768
this.router.on('GET', '/health', async () => '')
6869
this.router.on('GET', '/favicon.ico', async () => '')
6970
}

0 commit comments

Comments
 (0)