View class, refactoring

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

No files matched your search

+2 -3
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{