mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +00:00
Fix serving the static dir
This commit is contained in:
parent
8b795688df
commit
d4c370f8ad
1 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue