mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Api Controller Progress
This commit is contained in:
1 parent
bc0816e812
commit
cdcc63a81a
1 file changed
+3
-4
@@ -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(){
|
||||
|
||||
Reference in new issue
Block a user