Add roboux to dependencies, and direct API to it
This commit is contained in:
parent
b1666e090a
commit
6635af0bfc
|
@ -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();
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue