get<T> method

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

Adds a GET endpoint.

Implementation

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