addEndpoint

abstract fun addEndpoint(path: String, method: HttpMethod, handler: (HttpRequest) -> HttpResponse)

エンドポイントを追加します

Parameters

path

パス

method

HTTPメソッド

handler

ハンドラー関数