mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-12-23 08:49:20 +08:00
添加health check api
This commit is contained in:
parent
7cbebf780c
commit
4fe9b654f5
@ -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
6
src/api/routes/ping.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export default {
|
||||||
|
prefix: '/ping',
|
||||||
|
get: {
|
||||||
|
'': async () => "pong"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user