get<T> method
Registers a GET
route that responds to with the result of the closure
.
app.get('/say-hello', (request) async => 'Hello, world!');
Implementation
void get<T>(String path, FutureOr<T> Function(HttpRequest request) closure) =>
on(closure, method: 'GET', path: path);