Remarks

This is a Fluent interface

See

Router for usage

Itty-Router for the inspiration behind the interface

interface AnnotatedRouter {
    handle: RequestHandler;
    all(uri, handler): AnnotatedRouter;
    delete(uri, handler): AnnotatedRouter;
    get(uri, handler): AnnotatedRouter;
    head(uri, handler): AnnotatedRouter;
    options(uri, handler): AnnotatedRouter;
    patch(uri, handler): AnnotatedRouter;
    post(uri, handler): AnnotatedRouter;
    put(uri, handler): AnnotatedRouter;
}

Properties

Methods

Generated using TypeDoc