Createtoken API: Added better description and deleted extra file.

Thanks to magicbelette and xet7 !

Fixes #2887
This commit is contained in:
Lauri Ojansivu 2021-02-02 20:51:41 +02:00
parent d8c8856548
commit 3774060d32
3 changed files with 7 additions and 2 deletions

View file

@ -724,7 +724,12 @@ Cards.helpers({
definition,
};
});
ret.sort((a, b) => a.definition.name !== undefined && b.definition.name !== undefined && a.definition.name.localeCompare(b.definition.name));
ret.sort(
(a, b) =>
a.definition.name !== undefined &&
b.definition.name !== undefined &&
a.definition.name.localeCompare(b.definition.name),
);
return ret;
},

View file

@ -1768,7 +1768,7 @@ if (Meteor.isServer) {
*
* @description Only the admin user (the first user) can call the REST API.
*
* @param {string} userId the ID of the user to delete
* @param {string} userId the ID of the user to create token for.
* @return_type {_id: string}
*/
JsonRoutes.add('POST', '/api/createtoken/:userId', function(req, res) {

Binary file not shown.