Add roboux to dependencies, and direct API to it

This commit is contained in:
Andrew Stewart 2014-01-24 14:14:51 -08:00
parent b1666e090a
commit 6635af0bfc
3 changed files with 5 additions and 3 deletions

2
dist/api.js vendored
View File

@ -33,7 +33,7 @@
this.server.set('title', 'Cylon API Server');
this.server.use(express.json());
this.server.use(express.urlencoded());
this.server.use(express["static"](__dirname + "/../api"));
this.server.use(express["static"](__dirname + "/../node_modules/roboux/"));
this.server.get("/*", function(req, res, next) {
res.set('Content-Type', 'application/json');
return next();

View File

@ -42,6 +42,8 @@
"wrench": "~1.5.4",
"glob": "~3.2.7",
"ejs": "~0.8.5",
"commander": "~2.1.0"
"commander": "~2.1.0",
"roboux": "~0.0.2"
}
}

View File

@ -28,7 +28,7 @@ namespace 'Cylon', ->
@server.set 'title', 'Cylon API Server'
@server.use express.json()
@server.use express.urlencoded()
@server.use express.static __dirname + "/../api"
@server.use express.static __dirname + "/../node_modules/roboux/"
@server.get "/*", (req, res, next) =>
res.set 'Content-Type', 'application/json'