diff --git a/dist/api.js b/dist/api.js index 20d1a3c..d91b014 100644 --- a/dist/api.js +++ b/dist/api.js @@ -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(); diff --git a/package.json b/package.json index f39b4e7..dc11145 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/api.coffee b/src/api.coffee index 39934df..745c979 100644 --- a/src/api.coffee +++ b/src/api.coffee @@ -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'