12 lines
430 B
TypeScript
12 lines
430 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, ['POST'])
|
|
if (methodResponse) return methodResponse
|
|
|
|
return ok({ message: '上传接口待实现' })
|
|
})
|