diff --git a/API.md b/API.md index 24e7c36..19364c4 100644 --- a/API.md +++ b/API.md @@ -1,26 +1,26 @@ # API Reference -## Table of Contents +## Index * [Router ⏏](#router-) * [new Router(\[opts\])](#new-routeropts) - * [router.get|put|post|patch|delete|del ⇒ Router](#routergetputpostpatchdeletedel--coderoutercode) + * [router.get|put|post|patch|delete|del ⇒ Router](#routergetputpostpatchdeletedel--router) * [Named routes](#named-routes) * [Match host](#match-host) * [Multiple middleware](#multiple-middleware) * [Nested routers](#nested-routers) * [Router prefixes](#router-prefixes) * [URL parameters](#url-parameters) - * [router.routes ⇒ function](#routerroutes--codefunctioncode) - * [router.use(\[path\], middleware) ⇒ Router](#routerusepath-middleware--coderoutercode) - * [router.prefix(prefix) ⇒ Router](#routerprefixprefix--coderoutercode) - * [router.allowedMethods(\[options\]) ⇒ function](#routerallowedmethodsoptions--codefunctioncode) - * [router.redirect(source, destination, \[code\]) ⇒ Router](#routerredirectsource-destination-code--coderoutercode) - * [router.route(name) ⇒ Layer | false](#routerroutename--codelayercode--codefalsecode) - * [router.url(name, params, \[options\]) ⇒ String | Error](#routerurlname-params-options--codestringcode--codeerrorcode) - * [router.param(param, middleware) ⇒ Router](#routerparamparam-middleware--coderoutercode) - * [Router.url(path, params) ⇒ String](#routerurlpath-params--codestringcode) + * [router.routes ⇒ function](#routerroutes--function) + * [router.use(\[path\], middleware) ⇒ Router](#routerusepath-middleware--router) + * [router.prefix(prefix) ⇒ Router](#routerprefixprefix--router) + * [router.allowedMethods(\[options\]) ⇒ function](#routerallowedmethodsoptions--function) + * [router.redirect(source, destination, \[code\]) ⇒ Router](#routerredirectsource-destination-code--router) + * [router.route(name) ⇒ Layer | false](#routerroutename--layer--false) + * [router.url(name, params, \[options\]) ⇒ String | Error](#routerurlname-params-options--string--error) + * [router.param(param, middleware) ⇒ Router](#routerparamparam-middleware--router) + * [Router.url(path, params) ⇒ String](#routerurlpath-params--string) ## Router ⏏