docs: add annotaion for methodHandler api

This commit is contained in:
Dayoung 2025-06-26 17:34:34 +09:00
parent d19ef7efc7
commit a36cda9843

View File

@ -60,10 +60,16 @@ async function getSurveySaleDetail(request: NextRequest): Promise<NextResponse>
}
/**
* @param {NextRequest} request - body에 method { method: 'PUT' | 'DELETE' | 'PATCH' }
* @description PUT, DELETE, PATCH
* @api {POST} /api/survey-sales/:id , , API
* @apiName POST /api/survey-sales/:id
* @apiGroup SurveySales
* @apiDescription , , API
*
* @returns {NextResponse}
* @apiParam {String} method (PUT, DELETE, PATCH) (required)
* @apiParam {Object} body (required)
*
* @apiSuccess {NextResponse}
* @apiError {Number} 400
*/
async function methodHandler(request: NextRequest): Promise<NextResponse> {
const id = request.nextUrl.pathname.split('/').pop() ?? ''