I'm building a layer tree and I would like it to be updated automatically when the page is loaded with layer that are in a specific workspace on GeoServer.
In my layer tree I have a group containing background layers such as Bing satellite and OSM, and another group that will contain the GeoServer layers.
How can I request the layers from the workspace and add them automatically?