Constructor Summary
Public Constructor | ||
public |
Create a movies object. |
Method Summary
Public Methods | ||
public |
Get info from one movie. |
|
public |
Get all the pages. |
|
public |
Get one page. |
|
public |
getRandomMovie(req: Request, res: Response, next: Function): Movie Get a random movie. |
Public Constructors
Public Methods
public getMovie(req: Request, res: Response, next: Function): Movie source
Get info from one movie.
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 getMovies(req: Request, res: Response, next: Function): String[] source
Get all the pages.
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 getPage(req: Request, res: Response, next: Function): Movie[] 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. |