mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 08:20:10 +00:00
Add ping api
This commit is contained in:
parent
d00928cf3f
commit
f7ebf14501
1 changed files with 27 additions and 0 deletions
27
src/server/api/endpoints/ping.ts
Normal file
27
src/server/api/endpoints/ping.ts
Normal 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(),
|
||||
};
|
||||
});
|
Loading…
Reference in a new issue