refs #6930 perf: remove logoutMultimedia method
This commit is contained in:
parent
f2f6e7be0b
commit
c84e86270c
|
@ -31,32 +31,6 @@ module.exports = function(Self) {
|
||||||
message: `A client with that Web User name already exists`
|
message: `A client with that Web User name already exists`
|
||||||
});
|
});
|
||||||
|
|
||||||
Self.remoteMethod('logoutMultimedia', {
|
|
||||||
description: 'Logout current MultimediaToken',
|
|
||||||
accepts: [{
|
|
||||||
arg: 'ctx',
|
|
||||||
type: 'Object',
|
|
||||||
http: {source: 'context'}
|
|
||||||
}],
|
|
||||||
returns: {
|
|
||||||
type: 'Boolean',
|
|
||||||
root: true
|
|
||||||
},
|
|
||||||
http: {
|
|
||||||
verb: 'POST',
|
|
||||||
path: '/logoutMultimedia'
|
|
||||||
},
|
|
||||||
accessScopes: ['read:multimedia']
|
|
||||||
});
|
|
||||||
Self.logoutMultimedia = async function(ctx) {
|
|
||||||
let {accessToken} = ctx.req;
|
|
||||||
try {
|
|
||||||
Self.logout(accessToken.id);
|
|
||||||
return true;
|
|
||||||
} catch (error) {
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Self.remoteMethod('getCurrentUserData', {
|
Self.remoteMethod('getCurrentUserData', {
|
||||||
description: 'Gets the current user data',
|
description: 'Gets the current user data',
|
||||||
accepts: [
|
accepts: [
|
||||||
|
|
Loading…
Reference in New Issue