More work in REST api deletion
This commit is contained in:
parent
5642b106d4
commit
47e9c18607
2 changed files with 10 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue