All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.dataplotter.dataPlotterService.js Maven / Gradle / Ivy

The newest version!
(function () {

    var injectParams = ['$http', 'SETTINGS', 'RestServerAuthService'];

    var DataPlotterService = function ($http, SETTINGS, RestServerAuthService) {

        this.getConfigFile = function () {
            var url = SETTINGS.DATAPLOTTER_CONFIG_URL;

            var req = {
                method: 'GET',
                dataType: 'json',
                url: url,
                headers: {
                    'Authorization': RestServerAuthService.getAuthHash()
                }
            };

            return $http(req).then(r => r.data.plotters);
        };

    };

    DataPlotterService.$inject = injectParams;

    angular.module('openmuc.dataplotter').service('DataPlotterService', DataPlotterService);

})();




© 2015 - 2025 Weber Informatics LLC | Privacy Policy