Features
- expose your beanpole routes over HTTP
- easy to specify HTTP Middleware
Beans
http.gateway
exposes your beanpole routes over HTTP.http.server
starts up the http server.http.middleware
middleware for http specific routes
Usage
First off, use this block of code wherever you want to include the http beans:
//sets add a require path to the app; var router = ; router //load all the beansrouter; //or load them individuallyrouter;
Middleware
Basic Auth Middleware
router;
Session Middleware
router