aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_gui/static/app/services/partner/nova.service.js
blob: 38e2a0fcc9fd9d388c8b14e033c430f944851a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
 * @author arnaud marhin<arnaud.marhin@orange.com>
 */

(function() {

	'use strict';

	angular
		.module('moon')
			.factory('novaService', novaService);
	
	novaService.$inject = ['$resource'];
	
	function novaService($resource) { 
	                                   	
        return {
            
        	data: {
        	
	            image: $resource('./pip/nova/images', {}, {
	            	query: {method: 'GET', isArray: false}
	     	   	}),
	     	   	
	     	   	flavor: $resource('./pip/nova/flavors', {}, {
	            	query: {method: 'GET', isArray: false}
	     	   	})
     	   	
        	}
        
        };
    
    }
	
})();