Class: ActivitiesController

ActivitiesController()

HTTP handlers for activities.

Constructor

new ActivitiesController()

Source:

Members

formValidation :Array.<express.RequestHandler>

Validation for the activity management form. Field rules run for create and update only; limits match the activities table columns.

Type:
  • Array.<express.RequestHandler>
Source:

routes :express.Router

Type:
  • express.Router
Source:

Methods

(async, static) create()

Source:

(async, static) delete()

Source:

(async, static) getById()

Source:

(async, static) handleActivityManagement()

Creates, updates or deletes an activity from the validated management form.

Source:

(async, static) list()

Source:

(async, static) update()

Source:

(async, static) viewActivityManagement()

Renders the activity management page with a filtered, sorted and paginated activity list. Loads the activity in the URL into the edit form, even when it is not on the current page.

Source: