<?php
// required headers
//header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Max-Age: 3600");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
// files needed to connect to database
$pathRoot = $_SERVER['DOCUMENT_ROOT'];
include_once  $pathRoot ."/saia/api/v1/config/database.php";
//include_once SITE_ROOT .'/api/v1/config/database.php';
include_once $pathRoot ."/saia/api/v1/objects/consultant.php";
include_once $pathRoot ."/saia/api/v1/objects/appUser.php";
 
// get database connection
$database = new Database();
$db = $database->getConnection();
 

 
include_once $pathRoot ."/saia/api/v1/config/core.php";
include_once $pathRoot ."/saia/api/v1/libs/php-jwt-master/src/BeforeValidException.php";
include_once $pathRoot ."/saia/api/v1/libs/php-jwt-master/src/ExpiredException.php";
include_once $pathRoot ."/saia/api/v1/libs/php-jwt-master/src/SignatureInvalidException.php";
include_once $pathRoot ."/saia/api/v1/libs/php-jwt-master/src/JWT.php";
use \Firebase\JWT\JWT;

			$innerObject["id"] = 0;
			$innerObject["name"] = "Christo";
			$innerObject["email"] = "christo@ideas4apps.co.za";
			$innerObject["jwt"] = "Bearer 12722u2u39ur39u39u39ru93ru9ru93u29u";
		
	    echo 	json_encode($innerObject);


?>