Api Controller Progress

This commit is contained in:
JonatanRek 2020-04-24 18:58:00 +02:00
parent bc0816e812
commit cdcc63a81a
1 changed files with 3 additions and 4 deletions

View File

@ -1,13 +1,12 @@
<?php
class ApiObject {
class ApiCOntroller {
private $data = [];
public $httpCode = 200;
public $autenticated = false;
function __construct($objectName, $httpHeaders) {
$this->table = $objectName;
$this->headers = $httpHeaders;
function __construct() {
$this->headers = $_SERVER;
}
function requireAuth(){