post<T> method

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

Adds a POST endpoint.

Implementation

MethodRouter post<T>(Endpoint<T> endpoint, {int status = 200}) =>
    on('POST', endpoint, status: status);