hardlounge/lib/server.js

31 lines
332 B
JavaScript
Raw Normal View History

2014-03-04 16:31:52 +00:00
/**
* Module dependencies.
*/
var connect = require("connect");
/**
* Export module.
*/
module.exports = Server;
/**
* The Server class.
*
* @public
*/
function Server() {
/**
* Start the server.
*
* @public
*/
this.listen = function(port) {
connect().use(connect.static("client")).listen(port);
};
};