Serve Robeaux correctly
This commit is contained in:
parent
3dde16d659
commit
f3cb8133ff
|
@ -33,7 +33,7 @@
|
||||||
this.server.set('title', 'Cylon API Server');
|
this.server.set('title', 'Cylon API Server');
|
||||||
this.server.use(express.json());
|
this.server.use(express.json());
|
||||||
this.server.use(express.urlencoded());
|
this.server.use(express.urlencoded());
|
||||||
this.server.use(express["static"](__dirname + "/../node_modules/roboux/"));
|
this.server.use(express["static"](__dirname + "/../node_modules/robeaux/"));
|
||||||
this.server.get("/*", function(req, res, next) {
|
this.server.get("/*", function(req, res, next) {
|
||||||
res.set('Content-Type', 'application/json');
|
res.set('Content-Type', 'application/json');
|
||||||
return next();
|
return next();
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace 'Cylon', ->
|
||||||
@server.set 'title', 'Cylon API Server'
|
@server.set 'title', 'Cylon API Server'
|
||||||
@server.use express.json()
|
@server.use express.json()
|
||||||
@server.use express.urlencoded()
|
@server.use express.urlencoded()
|
||||||
@server.use express.static __dirname + "/../node_modules/roboux/"
|
@server.use express.static __dirname + "/../node_modules/robeaux/"
|
||||||
|
|
||||||
@server.get "/*", (req, res, next) =>
|
@server.get "/*", (req, res, next) =>
|
||||||
res.set 'Content-Type', 'application/json'
|
res.set 'Content-Type', 'application/json'
|
||||||
|
|
Loading…
Reference in New Issue