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.use(express.json());
|
||||
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) {
|
||||
res.set('Content-Type', 'application/json');
|
||||
return next();
|
||||
|
|
|
@ -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 + "/../node_modules/roboux/"
|
||||
@server.use express.static __dirname + "/../node_modules/robeaux/"
|
||||
|
||||
@server.get "/*", (req, res, next) =>
|
||||
res.set 'Content-Type', 'application/json'
|
||||
|
|
Loading…
Reference in New Issue