Skip to content

Instantly share code, notes, and snippets.

@brunoksato
Created March 11, 2016 15:36
Show Gist options
  • Save brunoksato/d8f6de6e8eddf5b53928 to your computer and use it in GitHub Desktop.
Save brunoksato/d8f6de6e8eddf5b53928 to your computer and use it in GitHub Desktop.
import path from 'path';
exports.register = (plugin, options, next) => {
plugin.route({
method: 'GET',
path: '/docs/{param*}',
handler: {
directory: {
path: path.join(__dirname, '../../docs'),
listing: true,
index: true
}
}
});
next();
};
exports.register.attributes = {
name: 'static-ctrl',
version: '2.0.0'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment