We want to be able to specify these dependencies in one place, the oslc-server package.json file, so that the server and its configuration specifies how things are assembled.
This means all the dependency management and loading needs to be done in oslc-sever, not in the assembled services.
So oslc-server needs to require the necessary modules, and assemble the routes. The used services don't have these dependencies, and only use express next() to delegate to the server's desired configuration.
oslc-server uses oslc-service uses ldp-service uses ldp-service-jena.
We want to be able to specify these dependencies in one place, the oslc-server package.json file, so that the server and its configuration specifies how things are assembled.
This means all the dependency management and loading needs to be done in oslc-sever, not in the assembled services.
So oslc-server needs to require the necessary modules, and assemble the routes. The used services don't have these dependencies, and only use express next() to delegate to the server's desired configuration.