rudeshark.net/packages/backend/src/server/api/endpoints/ping.ts

28 lines
426 B
TypeScript
Raw Normal View History

import define from '../define';
2021-01-09 01:25:27 +01: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,
},
2021-12-09 15:58:30 +01:00
},
},
2021-01-09 01:25:27 +01:00
};
export default define(meta, async () => {
return {
pong: Date.now(),
};
});