﻿(function () {
    'use strict';
    angular.module('judgeapp').factory('contentService', contentService);
    contentService.$inject = ['$http', 'ngAuthSettings'];

    function contentService($http, ngAuthSettings) {
        return {
            getContent: getContent
        };

        /**
         * Get reference data (content) from server.
         * @param {string} options.key
         * @param {string} options.group
         * @param {string} options.locale - Optional. If not specified current culture name will be used.
         **/
        function getContent(options) {
            return $http.get(ngAuthSettings.apiServiceBaseUri + '/Content', { params: options });
        }
    }
})();