RoutesMethods extension

The <method> extension.

on

Methods

delete<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a DELETE route that responds to with the result of the closure.
get<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a GET route that responds to with the result of the closure.

Available on Routes, provided by the RoutesMethods extension

Registers a HEAD route that responds to with the result of the closure.
patch<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a PATCH route that responds to with the result of the closure.
post<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a POST route that responds to with the result of the closure.
put<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a PUT route that responds to with the result of the closure.