Last active
December 16, 2015 14:48
-
-
Save mani95lisa/5450842 to your computer and use it in GitHub Desktop.
This file contains 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 characters
var Hapi = require('hapi'); | |
// Declare internals | |
var internals = {}; | |
internals.main = function () { | |
var http = new Hapi.Server(812); | |
http.route([ | |
{ method: 'GET', path: '/{path*}', handler: { directory: { path: './public' , listing: true} } } | |
]); | |
http.start(); | |
}; | |
internals.main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment