Creating a symbolic link/mounting a registry
A symbolic link to a registry can be created in the following manner. The same code can be used to mount a registry to a specific location. If a remote registry needs to be mounted, the same method can be used with an extra parameter.
registry.createLink("/config", "/_system/config"); registry.createLink("/config", "/_system/config", "http://remote.registry.url/);
Removing a smbolic link/mount point of a registry
A symbolic link or a mount point of a registry created above can be removed using the following line of code:
registry.removeLink("/config");