Added some error checking to the external interface.
Refactor towards putting the sub-route for a directory under the control of the directory itself.
Implemented 'dir config', a configure file in a route config directory that allows the sub-route to be customized (as a a start).
Now have slightly different behaviour for the root rest API path, it is not included in the route path.
Fixes to pass in parent route path correctly.
Now more directly specifying the root rest directory.
Added end to end test for customized route.
Added tests and examples for customizing root path, customizing multiple sub-paths and registering multiple HTTP get handlers.
Parent route is now passed in through external interface, it defaults when not specified.
Added example for specifying the parent rest api route.
Refactored route handler into a generic function.
Added test to confirm that get.js handler works when in a sub-directory.
Route can now be 'opened' by the direct parent handler.
Now initializing config when the 'dir' object is constructed.
Opening routes now works recursively for parent directories.
Route open can now be handled by the directory config that contains get.js
Simplified tests.
Removed 'isRoot', the parent field of each dir object is now used to determine if it is the root dir.
Simplified tests.
Simplified tests.
Simplified tests.