fc7f19e785
* Update resolve-market to be a v2 function * Cleanup API error responses * Update frontend to use v2 version of resolvemarket * Appease ESLint * Address review comments * Appease ESLint * Remove unnecessary auth check * Fix logic bug in FR market validation * Make it so you can specify runtime opts for v2 functions * Cleanup to resolve market API resolutions input, fixes * Fix up tiny lint * Last minute cleanup to resolvemarket FR API input validation Co-authored-by: Benjamin <ben@congdon.dev>
9 lines
189 B
TypeScript
9 lines
189 B
TypeScript
import { newEndpoint } from './api'
|
|
|
|
export const health = newEndpoint({ methods: ['GET'] }, async (_req, auth) => {
|
|
return {
|
|
message: 'Server is working.',
|
|
uid: auth.uid,
|
|
}
|
|
})
|