1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-27 21:18:05 +09:00
hotomoe/packages/backend/src/server/api/endpoints/ping.ts
syuilo 0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00

28 lines
424 B
TypeScript

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(),
};
});