Skip to content

Instantly share code, notes, and snippets.

@mani95lisa
Last active December 16, 2015 14:48
Show Gist options
  • Save mani95lisa/5450842 to your computer and use it in GitHub Desktop.
Save mani95lisa/5450842 to your computer and use it in GitHub Desktop.
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