diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-19 10:44:55 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-19 10:44:55 +0300 |
commit | f1350a5c825610f908ed7182855af436fe4957dd (patch) | |
tree | f72b471c2abc99b37ee30f716363d8a29b75fe77 /app/assets/javascripts/boards/services | |
parent | e4176f4ec42fa8e391b088d62deef051cdafaf23 (diff) | |
parent | f64e36c44832db125beab5923c0177ff69ccedba (diff) |
Merge branch 'master' into issue-board-sidebar
Diffstat (limited to 'app/assets/javascripts/boards/services')
-rw-r--r-- | app/assets/javascripts/boards/services/board_service.js.es6 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/boards/services/board_service.js.es6 b/app/assets/javascripts/boards/services/board_service.js.es6 index b7a9ea16204..b76063911bb 100644 --- a/app/assets/javascripts/boards/services/board_service.js.es6 +++ b/app/assets/javascripts/boards/services/board_service.js.es6 @@ -1,13 +1,13 @@ class BoardService { - constructor (root) { - this.lists = Vue.resource(`${root}/lists{/id}`, {}, { + constructor (root, boardId) { + this.lists = Vue.resource(`${root}/${boardId}/lists{/id}`, {}, { generate: { method: 'POST', - url: `${root}/lists/generate.json` + url: `${root}/${boardId}/lists/generate.json` } }); - this.issue = Vue.resource(`${root}/issues{/id}`, {}); - this.issues = Vue.resource(`${root}/lists{/id}/issues`, {}); + this.issue = Vue.resource(`${root}/${boardId}/issues{/id}`, {}); + this.issues = Vue.resource(`${root}/${boardId}/lists{/id}/issues`, {}); Vue.http.interceptors.push((request, next) => { request.headers['X-CSRF-Token'] = $.rails.csrfToken(); |