Created
January 12, 2018 18:11
-
-
Save simov/4e4bb0a1ecbb45b92e23608388e60909 to your computer and use it in GitHub Desktop.
Revisions
-
simov created this gist
Jan 12, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ var express = require('express') var serveIndex = require('serve-index') var serveStatic = require('serve-static') var app = express() app.use(serveStatic('/home/s')) app.use('/', serveIndex('/home/s', {'icons': true, view: 'details'})) app.listen(8001)