本文へ移動

@donneko/tyoi-server / apiResponse

関数: apiResponse()

apiResponse<T>(body, options): ApiResponse<T>

定義: server-core/service/api-response.ts:11

指定したHTTP statusのAPIレスポンスを作成します。 / Creates an API response with an explicit HTTP status.

型パラメーター

T

T

パラメータ

body

T

options

status

number

戻り値

ApiResponse<T>