Constructor Summary
Public Constructor | ||
public |
Create a shows object. |
Method Summary
Public Methods | ||
public |
Get one page. |
|
public |
getRandomShow(req: Request, res: Response, next: Function): Show Get a random show. |
|
public |
Get info from one show. |
|
public |
Get all the pages. |
Public Constructors
Public Methods
public getPage(req: Request, res: Response, next: Function): Show[] source
Get one page.
Params:
Name | Type | Attribute | Description |
req | Request | The express request object. |
|
res | Response | The express response object. |
|
next | Function | The next function for Express. |
Test:
public getRandomShow(req: Request, res: Response, next: Function): Show source
Get a random show.
Params:
Name | Type | Attribute | Description |
req | Request | The express request object. |
|
res | Response | The express response object. |
|
next | Function | The next function for Express. |
Test:
public getShow(req: Request, res: Response, next: Function): Show source
Get info from one show.
Params:
Name | Type | Attribute | Description |
req | Request | The express request object. |
|
res | Response | The express response object. |
|
next | Function | The next function for Express. |