Fix serving the static dir

This commit is contained in:
Guillaume Wuip 2014-11-01 12:25:52 +01:00
parent 8b795688df
commit d4c370f8ad

View file

@ -3,9 +3,10 @@
'use strict'; 'use strict';
var express = require('express'), var express = require('express'),
path = require('path'), serveStatic = require('serve-static'),
fs = require('fs'); path = require('path'),
fs = require('fs');
/** /**
@ -25,10 +26,7 @@
//Static files //Static files
webPanel.get('/', function (req, res) { webPanel.use('/', serveStatic('./static'));
//send static
res.send('TODO');
});
//API //API