12 lines
438 B
TypeScript
12 lines
438 B
TypeScript
import type { Context } from '@netlify/functions'
|
|
import { guardMethod } from '../utils/method.js'
|
|
import { ok } from '../utils/http.js'
|
|
import { withErrorBoundary } from '../utils/handler.js'
|
|
|
|
export default withErrorBoundary(async (request: Request, _context: Context) => {
|
|
const methodResponse = guardMethod(request, ['GET'])
|
|
if (methodResponse) return methodResponse
|
|
|
|
return ok({ message: 'user-info endpoint placeholder' })
|
|
})
|