Added jsdoc for the node part of etherpad.

This commit is contained in:
SamTV12345 2023-10-17 12:44:43 +02:00
parent 53d1e8a160
commit 2ebfb74ce7
16 changed files with 284 additions and 71 deletions

View file

@ -165,12 +165,13 @@ exports.version = version;
/**
* Handles a HTTP API call
* @param functionName the name of the called function
* @param {String} apiVersion the version of the api
* @param {String} functionName the name of the called function
* @param fields the params of the called function
* @req express request object
* @res express response object
*/
exports.handle = async function (apiVersion, functionName, fields, req, res) {
exports.handle = async function (apiVersion, functionName, fields) {
// say goodbye if this is an unknown API version
if (!(apiVersion in version)) {
throw new createHTTPError.NotFound('no such api version');