mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-10 23:45:07 +00:00
serve static relative to sources
This commit is contained in:
parent
5d3b97c64b
commit
c9e4c017be
2
app.js
2
app.js
@ -18,7 +18,7 @@ var app = new EventEmitter(),
|
||||
logger = libLogger('app'),
|
||||
httpApi = require('./httpApi')(app);
|
||||
|
||||
var staticServer = new nodeStatic.Server('./static');
|
||||
var staticServer = new nodeStatic.Server(path.join(__dirname, 'static'));
|
||||
var server = http.createServer(function(req, res) {
|
||||
if (req.url.indexOf('/api/') === 0) {
|
||||
return httpApi(req, res);
|
||||
|
Loading…
Reference in New Issue
Block a user