mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-24 22:34:58 +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
|
@ -3,9 +3,10 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
var express = require('express'),
|
||||
path = require('path'),
|
||||
fs = require('fs');
|
||||
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