mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-22 17:09:22 +08:00
增加支持ping
This commit is contained in:
parent
888455b56a
commit
97ef58f554
@ -1,5 +1,7 @@
|
||||
import chat from "./chat.ts";
|
||||
import ping from "./ping.ts";
|
||||
|
||||
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