feat: 后端初始化

This commit is contained in:
2026-07-28 10:54:47 +08:00
parent 88f5371ed8
commit dfe0d6bd95
24 changed files with 22326 additions and 0 deletions
@@ -0,0 +1,11 @@
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' })
})