mudskipper
mudskipper copied to clipboard
a resourceful router plugin for hapi
``` javascript 'use strict'; var Hapi = require('hapi'); var server = new Hapi.Server('127.0.0.1', 3000); var fn = function(req, reply) { reply('ok'); }; var resources = { services: { index: fn,...
Whenever POST /resource has a payload validator, the POST method on a sub-resource appears to inherit that validator. Note that I haven't tried other methods or other use-cases (sub_sub_resources, etc)....
Right now the closest approximation is to override the path with a singular name and use the index method, but this fails if you want to have children on the...
Can you please create an example or documentation for using authorization for resources?