manifold/functions/src/health.ts

12 lines
231 B
TypeScript
Raw Normal View History

import { newEndpoint } from './api'
export const health = newEndpoint(['GET'], async (_req, [user, _]) => {
return {
message: 'Server is working.',
user: {
id: user.id,
username: user.username,
},
}
})