12 lines
206 B
JavaScript
12 lines
206 B
JavaScript
var express = require('express');
|
|
|
|
function StaticServer() {
|
|
var router = express.Router();
|
|
|
|
router.use('/', express.static(__dirname + '/..'));
|
|
|
|
return router
|
|
}
|
|
|
|
module.exports = StaticServer;
|