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
34ee711182
commit
84127bf7ab
1 file changed
+3
-3
@@ -22,9 +22,9 @@ class ApiCOntroller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function response(){
|
function response($data = [], $httpCode = '200'){
|
||||||
http_response_code($this->httpCode);
|
http_response_code($httpCode);
|
||||||
echo json_encode($this->data);
|
echo json_encode($data);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user