route abstract method

void route(
  1. String verb,
  2. String path,
  3. Handler handler
)

Define a route for the given HTTP verb and path segment.

Note: If duplicate routes are defined, the first one will be used.

Implementation

void route(String verb, String path, Handler handler);