a1d5d161dd
* Move concurrently dep upwards * Add express as explicit dependency * Accept just one HTTP method per endpoint * Fix endpoint option coalescing * Expressification of cloud functions * Nicer logging of API requests * Refactor web package.json * Add ts-node and nodemon to dev dependencies, bring back cors * Add scaffolding to point dev server at local functions * Enable emulator in dev server scaffolding * Fix up a little stuff I broke
9 lines
186 B
TypeScript
9 lines
186 B
TypeScript
import { newEndpoint } from './api'
|
|
|
|
export const health = newEndpoint({ method: 'GET' }, async (_req, auth) => {
|
|
return {
|
|
message: 'Server is working.',
|
|
uid: auth.uid,
|
|
}
|
|
})
|