Add ping api

This commit is contained in:
syuilo 2021-01-09 09:25:27 +09:00
parent d00928cf3f
commit f7ebf14501

View file

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