qwc2
Version:
QGIS Web Client
21 lines (20 loc) • 512 B
JavaScript
/**
* Copyright 2024 Sourcepole AG
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
var REGISTRY = {};
var ResourceRegistry = {
addResource: function addResource(key, data) {
REGISTRY[key] = data;
},
removeResource: function removeResource(key) {
delete REGISTRY[key];
},
getResource: function getResource(key) {
return REGISTRY[key];
}
};
export default ResourceRegistry;