Merge pull request #16 from peanut996/master

添加health check api
This commit is contained in:
Vinlic科技 2024-03-20 13:47:06 +08:00 committed by GitHub
commit eccce82ade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,7 @@
import chat from "./chat.ts"; import chat from "./chat.ts";
import ping from "./ping.ts";
export default [ export default [
chat chat,
ping
]; ];

6
src/api/routes/ping.ts Normal file
View File

@ -0,0 +1,6 @@
export default {
prefix: '/ping',
get: {
'': async () => "pong"
}
}