More work in REST api deletion

This commit is contained in:
vjrj 2018-06-19 10:49:53 +02:00
parent 5642b106d4
commit 47e9c18607
2 changed files with 10 additions and 16 deletions

View file

@ -317,13 +317,16 @@ if (!Meteor.settings.private.internalApiToken) {
return fail(e);
}
return jsend.success({ subsId: result._str });
},
}
});
apiV1.addRoute('mobile/subscriptions/:token/:mobileToken/:subsId', { authRequired: false }, {
delete: function del() {
const {
token,
mobileToken,
subsId
} = this.bodyParams;
} = this.urlParams;
try {
check(token, String);
check(mobileToken, String);