Api Controller Progress
This commit is contained in:
parent
bc0816e812
commit
cdcc63a81a
@ -1,13 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
class ApiObject {
|
class ApiCOntroller {
|
||||||
private $data = [];
|
private $data = [];
|
||||||
public $httpCode = 200;
|
public $httpCode = 200;
|
||||||
public $autenticated = false;
|
public $autenticated = false;
|
||||||
|
|
||||||
|
|
||||||
function __construct($objectName, $httpHeaders) {
|
function __construct() {
|
||||||
$this->table = $objectName;
|
$this->headers = $_SERVER;
|
||||||
$this->headers = $httpHeaders;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function requireAuth(){
|
function requireAuth(){
|
||||||
|
Loading…
Reference in New Issue
Block a user