mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-12 02:04:34 +00:00
View class, refactoring
This commit is contained in:
1 parent
8d2af9181a
commit
63e7c95415
8 files changed
+104
-40
No files matched your search
@@ -1,12 +1,11 @@
|
||||
<?php
|
||||
class ApiController {
|
||||
protected $input;
|
||||
protected $authenticated;
|
||||
protected $authenticated = false;
|
||||
|
||||
function __construct() {
|
||||
$this->authenticated = false;
|
||||
|
||||
$input = file_get_contents('php://input');
|
||||
|
||||
if(empty($input)){
|
||||
$this->input = NULL;
|
||||
}else{
|
||||
|
||||
Reference in new issue
Block a user