Index
Class for starting the API.
Example:
// Simply start the API by creating a new instance of the Index class.
const index = new Index();
// Or override the default configuration of the Index class.
const index = new Index({
pretty: true,
verbose: false,
debug: false
});
Static Method Summary
Static Public Methods | ||
public static |
closeAPI(): void Function to stop the API from running. |
Static Private Methods | ||
private static |
_startAPI(): void Function to start the API. |
Constructor Summary
Public Constructor | ||
public |
constructor(config: Object) Create an index object. |