mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-26 15:25:04 +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';
|
'use strict';
|
||||||
|
|
||||||
var express = require('express'),
|
var express = require('express'),
|
||||||
|
serveStatic = require('serve-static'),
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
fs = require('fs');
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue