Members
formValidation :Array.<express.RequestHandler>
Validation for the session management form. Field rules run for create and update only, and new sessions cannot be dated before today.
Type:
- Array.<express.RequestHandler>
routes :express.Router
Type:
- express.Router
Methods
(async, static) create()
(async, static) delete()
(async, static) getById()
(static) handleSessionManagement()
Creates, updates or deletes a session from the validated management form.
(async, static) list()
(async, static) update()
(static) viewSessionManagement()
Renders the session management page with sessions for the next seven days, filtered by search term and trainer, and loads the session in the URL into the edit form.