7572e07489
* Slightly more defensive API endpoints * Add health endpoint for benchmarking trivial Firebase fns
12 lines
231 B
TypeScript
12 lines
231 B
TypeScript
import { newEndpoint } from './api'
|
|
|
|
export const health = newEndpoint(['GET'], async (_req, [user, _]) => {
|
|
return {
|
|
message: 'Server is working.',
|
|
user: {
|
|
id: user.id,
|
|
username: user.username,
|
|
},
|
|
}
|
|
})
|