ac-server
v0.2.7
Published
A simple http web server in nodejs with express.
Downloads
8
Readme
ac-server
Install
Usage
ac-server
routes.js
module.exports = {
upgrade: function(req, socket, head) {
// probably a websocket connection
},
routes: [
{
path: '/',
method: [ 'get', 'post' ], // defaults to 'all'
fn: function(req, res, next) {
res.end('Hello World!');
}
}
]
};