Added jsdoc for the node part of etherpad. (#5983)

This commit is contained in:
SamTV12345 2023-10-17 12:49:56 +02:00 committed by GitHub
parent 53d1e8a160
commit ff1b929eb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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');