Skip to content

Commit

Permalink
Merge pull request #16 from peanut996/master
Browse files Browse the repository at this point in the history
添加health check api
  • Loading branch information
Vinlic authored Mar 20, 2024
2 parents 7cbebf7 + 4fe9b65 commit eccce82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import chat from "./chat.ts";
import ping from "./ping.ts";

export default [
chat
chat,
ping
];
6 changes: 6 additions & 0 deletions src/api/routes/ping.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
prefix: '/ping',
get: {
'': async () => "pong"
}
}

0 comments on commit eccce82

Please sign in to comment.