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
| 'use strict';
|
| define([
| 'app'
| ], function (app) {
| app.factory("Api", ['$http', '$log', function ($http, $log) {
| return {
| find : function (conditions) {
| return $http.post("apiToken/find", conditions).then(function (response) {
| $log.debug("토큰 데이터 : ", response);
| return response;
| });
| },
| add : function (conditions) {
| return $http.post("apiToken/add", conditions).then(function (response) {
| $log.debug("토큰 생성 결과 : ", response);
| return response;
| });
| },
| remove : function (conditions) {
| return $http.post("apiToken/remove", conditions).then(function (response) {
| $log.debug("토큰 삭제 결과 : ", response);
| return response;
| });
| }
| }
| }
| ]);
| });
|
|