Custom resources
You can define bare resources (that is, resources without any default method handlers) using yarm.resource()
.
var resource = yarm.resource("myResource");
var deepResource = yarm.resource("path/to/deep/resource");
The whole point of defining bare resource is to define custom handlers, which is described in the next chapter.