controllers/userController

Controller for user-related operations.

Methods

(static) delete(req, res) → {Promise.<void>}

Deletes a user by their ID.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>

(static) getAll(req, res) → {Promise.<void>}

Retrieves a list of users with pagination support.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>

(static) getById(req, res) → {Promise.<void>}

Retrieves a user by their ID.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>

(static) search(req, res) → {Promise.<void>}

Searches for users based on the provided search terms.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>

(static) update(req, res) → {Promise.<void>}

Updates a user's information.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>