diff --git a/src/server/api/endpoints/ping.ts b/src/server/api/endpoints/ping.ts new file mode 100644 index 0000000000..0b1bb6e164 --- /dev/null +++ b/src/server/api/endpoints/ping.ts @@ -0,0 +1,27 @@ +import define from '../define'; + +export const meta = { + requireCredential: false as const, + + tags: ['meta'], + + params: { + }, + + res: { + type: 'object' as const, + optional: false as const, nullable: false as const, + properties: { + pong: { + type: 'number' as const, + optional: false as const, nullable: false as const, + }, + } + } +}; + +export default define(meta, async () => { + return { + pong: Date.now(), + }; +});