diff --git a/public/js/services/groupServices.js b/public/js/services/groupServices.js index 85214eba79..cabb68fa9f 100644 --- a/public/js/services/groupServices.js +++ b/public/js/services/groupServices.js @@ -19,6 +19,7 @@ angular.module('groupServices', ['ngResource']). removeMember: {method: "POST", url: API_URL + '/api/v2/groups/:gid/removeMember'}, questAccept: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questAccept'}, questReject: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questReject'}, + questCancel: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questCancel'}, questAbort: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questAbort'} }); diff --git a/src/routes/apiv2.coffee b/src/routes/apiv2.coffee index 805debb89f..edacbdc243 100644 --- a/src/routes/apiv2.coffee +++ b/src/routes/apiv2.coffee @@ -465,10 +465,18 @@ module.exports = (swagger, v2) -> middleware: [auth.auth, i18n.getUserLanguage, groups.attachGroup] action: groups.questReject + "/groups/{gid}/questCancel": + spec: + method: 'POST' + description: 'Cancel quest before it starts (in invitation stage)' + parameters: [path('gid','Group to cancel quest in','string')] + middleware: [auth.auth, i18n.getUserLanguage, groups.attachGroup] + action: groups.questCancel + "/groups/{gid}/questAbort": spec: method: 'POST' - description: 'Abort quest' + description: 'Abort quest after it has started (all progress will be lost)' parameters: [path('gid','Group to abort quest in','string')] middleware: [auth.auth, i18n.getUserLanguage, groups.attachGroup] action: groups.questAbort