post<T> function

MethodRouter post<T>(
  1. Endpoint<T> endpoint, {
  2. int status = 200,
})

Serves endpoint for POST.

Implementation

MethodRouter post<T>(Endpoint<T> endpoint, {int status = 200}) =>
    const MethodRouter().post(endpoint, status: status);