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

@ -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) {