View class, refactoring

This commit is contained in:
xinatorus
2020-05-04 21:19:14 +02:00
parent 8d2af9181a
commit 63e7c95415
8 changed files with 104 additions and 40 deletions

View File

@@ -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{