Class

Class Resource Routes Routing the Controller Object through resource endpoints

Requires

  • module:express

Members

inner, constant cl :object

Class Controller Object

inner, constant protect

Protected Route Middleware

inner, constant router :object

Express router to mount user related functions on.

Methods

inner /chapter/()

POST /class/ Save chapter Endpoint Auth Required
To Do:
  • write comments

inner /class/() → {json}

GET /class/ Auth Required
Returns:
json - -Welcome Endpoint Msg.
To Do:
  • write comments

inner /class/:id()

PUT /class/:id Update class by ID Endpoint Auth Required
To Do:
  • write comments

inner /class/:id()

GET /class/:id Get class by ID Endpoint Auth Required
To Do:
  • write comments

inner /class/:id()

DELETE /class/:id Remove class by ID Endpoint Auth Required
To Do:
  • write comments

inner /class/teacher/:teacher_id()

GET /class/teacher/:teacher_id Get All the Classes for a Teacher ID Endpoint Auth Required
To Do:
  • write comments