Initial commit
This commit is contained in:
19
app/auth_user.php
Normal file
19
app/auth_user.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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);
|
||||
Reference in New Issue
Block a user