koa
An mounting middleware forsiren-mount is modified from the koa-mount by:
- Support for express path using path-to-regexp.
Installation
npm install --save siren-mount
Usage
The usage is the same as koa-mount, except:
Regular Expression Path
You can use regular expression as prefix:
var app = ;var router = ; app;
Parameter Access
You can use ctx.params
to access the URL parameters:
var app = ;var router = ; app);
License
MIT