Static Method Summary
| Static Private Methods | ||
| private static |
_displayFile(req: Request, res: Response, root: String, file: String): JSON | File Displays a given file. |
|
Constructor Summary
| Public Constructor | ||
| public |
Create an index object. |
|
Method Summary
| Public Methods | ||
| public |
getErrorLog(req: Request, res: Response): File Displays the 'popcorn-api.log' file. |
|
| public |
Get general information about the server. |
|
Static Private Methods
Public Constructors
Public Methods
public getErrorLog(req: Request, res: Response): File source
Displays the 'popcorn-api.log' file.
Params:
| Name | Type | Attribute | Description |
| req | Request | The express request object. |
|
| res | Response | The express response object. |
Return:
| File | The content of the log file. |