diff options
author | xando <sebastian.pawlus@gmail.com> | 2014-07-11 16:04:33 +0200 |
---|---|---|
committer | xando <sebastian.pawlus@gmail.com> | 2014-07-11 16:04:33 +0200 |
commit | 860f70cc0ac10e5961a4d567f8a1bc48da02d197 (patch) | |
tree | 76ab1599863777412a8cfda1e7301b0aaa6f1e74 /static | |
parent | c419c74f3e916a0ded4427ded01c14ec9dc1b2a3 (diff) |
bug management for LavaJobs
Diffstat (limited to 'static')
-rw-r--r-- | static/main.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/static/main.js b/static/main.js index b81f6da..7fff2ff 100644 --- a/static/main.js +++ b/static/main.js @@ -45,6 +45,17 @@ angular.module('api', ['ngResource']) 'update': {method:'PUT'}, }); }) + .factory('LavaJob', function($resource) { + return $resource('/testrunner/lavajob/:number/', null, { + 'update': {method:'PUT'}, + }); + }) + .factory('LavaJobBug', function($resource) { + return $resource('/testrunner/lavajob/:number/bug/', null, { + add: { method: 'POST' }, + remove: { method: 'POST' }, + }); + }) .factory('FetchLavaJob', function($resource) { return $resource('/testrunner/fetch-lavajob/:build_id/:lavajob_id/', null, { 'update': {method:'PUT'}, |