Server.js icon indicating copy to clipboard operation
Server.js copied to clipboard

Is it possible to add the server as a dependency of another server?

Open marcelomachado opened this issue 3 years ago • 1 comments

I haven't found documentation that demonstrates what it would be like to use ldf-server as a library within another service instead of use it as a standalone application.

My wish is to add the ldf-server inside an API that already provides endpoints to access some services. So I would like to create routes that allow, for example, to add or remove datasources without having to restart the server and routes to query those datasources. Is there any simple way to do this or should I run the service in parallel? In the latter case how could I add datasources from this other API without having to restart the service?

marcelomachado avatar Aug 16 '22 22:08 marcelomachado

Currently, this is not possible. It would require some (not too difficult) changes to the implementation here.

You're welcome to propose a PR to make these changes though.

rubensworks avatar Aug 17 '22 11:08 rubensworks