Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

serve index.html

  • Loading branch information...
commit 6bb256ccfc0e17472f901b91e93f87a03bb98d16 1 parent 628dcc4
@devpaul authored
View
2  lib/commands/createMiddlewareCmd.js
@@ -28,8 +28,8 @@ function registerStaticContent(app, config) {
var dirOptions = { icons : true }
, folder = path.resolve(config.folder)
- app.use(express.directory(folder, dirOptions))
app.use(express.static(folder))
+ app.use(express.directory(folder, dirOptions))
}
module.exports = createExpressMiddlewareCmd
View
1  test/assets/useIndex/index.html
@@ -0,0 +1 @@
+It Worked!
Please sign in to comment.
Something went wrong with that request. Please try again.