qr_id route php getDog
This commit is contained in:
18
php/php-dog/getUser.php
Normal file
18
php/php-dog/getUser.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
header("Access-Control-Allow-Headers: access");
|
||||
header("Access-Control-Allow-Methods: GET");
|
||||
header("Content-Type: application/json; charset=UTF-8");
|
||||
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
|
||||
|
||||
session_start();
|
||||
|
||||
require __DIR__.'/classes/Database.php';
|
||||
require __DIR__.'/AuthMiddleware.php';
|
||||
|
||||
$allHeaders = getallheaders();
|
||||
$db_connection = new Database();
|
||||
$conn = $db_connection->dbConnection();
|
||||
$auth = new Auth($conn, $allHeaders);
|
||||
|
||||
echo json_encode($auth->isValid());
|
||||
Reference in New Issue
Block a user