20 lines
574 B
PHP
20 lines
574 B
PHP
<?php
|
|
// Headers
|
|
header('Access-Control-Allow-Origin: *');
|
|
header('Content-Type: application/json');
|
|
header('Access-Control-Allow-Methods: POST');
|
|
header('Access-Control-Allow-Headers: Access-Control-Allow-Headers,Content-Type,Access-Control-Allow-Methods, Authorization, X-Requested-With');
|
|
|
|
include_once '../models/Auth.php';
|
|
include_once '../config/Database.php';
|
|
//require_once("../getrequestheaders.php");
|
|
|
|
|
|
$database = new Database();
|
|
$db = $database->connect();
|
|
|
|
|
|
$auth = new Auth($db);
|
|
$retval = $auth->read_api_auth();
|
|
var_dump($retval);
|