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

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