get<T> function

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

Serves endpoint for GET.

Implementation

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