1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-29 05:58:06 +09:00
hotomoe/src/server/api/endpoints/ping.ts

28 lines
427 B
TypeScript
Raw Normal View History

import define from '../define.js';
2021-01-09 09:25:27 +09:00
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(),
};
});