1.0.0 • Published 9 years ago

hapi-static-content v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

Hapi Static Content Plugin

For delivery of static content in a Hapi.js application

Example Usage:

var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ host: 'localhost' });

var options = {
    path: './public' // to make the 'public' directory the path statically shared 
};

server.register({
    register: require('hapi-static-content'),
    options: options
}, function (err) {

    if (err) {
        console.error(err);
    }
    else {
        server.start(function () {

            console.info('Server started at ' + server.info.uri);
        });
    }
});