Notes Controller file
Contains an object with each controller related to the Note model
- Description:
- Notes Controller file Contains an object with each controller related to the Note model
- Source:
Requires
Methods
(async, static) getAll(res, next) → {void}
- Description:
- Retrieves all notes list throw an object. This function calls the service to get all notes from the database and sends the result as a response.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
res |
Object | The response object to send the result. |
next |
function | The next middleware to pass control in case of an error. |
Throws:
-
Throws an error if there is an issue with the database.
- Type
- Error
Returns:
- Type
- void