diff options
author | 2018-08-07 14:15:05 +0300 | |
---|---|---|
committer | 2018-08-07 14:15:05 +0300 | |
commit | b9708a7c3cfaf5767992a2b15180e7b85c459242 (patch) | |
tree | 076e19ea52232232e9060a9d7e074947a4a49508 /app/main/dashboard/dcaedt/dcaedt.factory.js | |
parent | cc32bd38d72e5c1c92048657083952d3e45c1819 (diff) |
adding the dcae dt code
Adding DCAE-dt code
Change-Id: Id6b779db9d24e10825fb97ad5fd46f41e65e6738
Issue-ID: SDC-1614
Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
Diffstat (limited to 'app/main/dashboard/dcaedt/dcaedt.factory.js')
-rw-r--r-- | app/main/dashboard/dcaedt/dcaedt.factory.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/main/dashboard/dcaedt/dcaedt.factory.js b/app/main/dashboard/dcaedt/dcaedt.factory.js new file mode 100644 index 0000000..934ed76 --- /dev/null +++ b/app/main/dashboard/dcaedt/dcaedt.factory.js @@ -0,0 +1,27 @@ +(function () { + + 'use strict'; + + var dcaeFactory = function ($http, appSettings) { + + var factory = {}; + + factory.getVNFList = function () { + return $http.get(window.host + 'getResourcesByCategory'); + }; + + factory.postData = function (url, data, config) { + return $http.post(url, data, config); + }; + + return factory; + }; + + dcaeFactory.$inject = ['$http', 'appSettings']; + + angular + .module('dcaeApp.dashboard.dcae') + .factory('dcaeFactory', dcaeFactory); + + +})(); |