class API implements Handleable
public static function Request(): bool - returns if current request is an api request. (/api path prefix)
public function Handle(App $app): void - Handles api request.
private function Exit(int $status, string $text, array $data = []): void - Exit response with specified data
private function ExitResponse(array $response): void - Exit response with specified data
private function GetControllerList(): array - Returns list of controllers