Chapter Resource Routes
Routing the Controller Object through resource endpoints
Requires
- module:express
Members
-
inner, constant cp :object
-
Chapter Controller Object
-
inner, constant protect
-
Protected Route Middleware
-
inner, constant router :object
-
Express router to mount user related functions on.
Methods
-
inner /chapter/() → {json}
-
GET /chapter/ Auth Required
Returns:
json - -Welcome Endpoint Msg.- To Do:
-
- write comments
-
inner /chapter/()
-
POST /chapter/ Save chapter Endpoint Auth Required
- To Do:
-
- write comments
-
inner /chapter/:id()
-
PUT /chapter/:id Update chapter by ID Endpoint Auth Required
- To Do:
-
- write comments
-
inner /chapter/:id()
-
GET /chapter/:id Get chapter by ID Endpoint Auth Required
- To Do:
-
- write comments
-
inner /chapter/:id()
-
DELETE /chapter/:bookId/:chapterId Remove chapter by ID Endpoint Auth Required
- To Do:
-
- write comments