Constructor Summary
Public Constructor | ||
public |
Create an animes object. |
Method Summary
Public Methods | ||
public |
Get info from one anime. |
|
public |
Get all the pages. |
|
public |
Get one page. |
|
public |
getRandomAnime(req: Request, res: Response, next: Function): Anime Get a random anime. |
Public Constructors
Public Methods
public getAnime(req: Request, res: Response, next: Function): Anime source
Get info from one anime.
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 getAnimes(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): Anime[] 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. |