controllers/teacherController

Controller for teacher-related operations.

Methods

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

Create a new teacher.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>

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

Delete a teacher.
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>}

Get all teachers with pagination.
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>}

Get a teacher by its 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>}

Search for teachers 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>}

Update a teacher.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>