cf-util-route-handler
Cloudflare Route Handler Util
Installation
$ npm install cf-util-route-handler
Usage
;; // setup the router; // do all the world to make the router work normally routes: console console console ;Backbonehistorystart; // start routing;;;
A handler looks like this:
;
Only one handler is allowed to be setup.
routeTo
is fire and forget, there's no callback for async transitions, and
it does not return anything.