powerbi-router
Router for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.
This library uses Route-recognizer to handle pattern matching such as /root/path/:name
where name
will be passed as paramter to the handler.
Documentation:
https://microsoft.github.io/powerbi-router
Installation:
npm install --save powerbi-router
Usage:
;; ;; /** * Demonstrate 'syncrhonous' API with request and response. */router.get'/report/pages',; /** * Demonstrate 'asynchronous' API with accepted command, and events */router.put'/report/pages/active',; /** * Demonstrate using path parameters and query parameters */router.put'/report/pages/:pageName/visuals?filter=true',; /** * Demonstrate using wildcard matching */router.get'*notfound',;