mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
DevicesApi
This commit is contained in:
1 parent
b4cfffc432
commit
5519d46ca2
3 files changed
+21
-2
No files matched your search
@@ -17,7 +17,7 @@ class ApiController {
|
||||
}
|
||||
}
|
||||
|
||||
function requireAuth(){
|
||||
private function requireAuth(){
|
||||
if (isset($this->headers['HTTP_AUTHORIZATION'])) {
|
||||
// TODO: call appropriate class/method
|
||||
$authManager = new AuthManager();
|
||||
@@ -30,7 +30,7 @@ class ApiController {
|
||||
}
|
||||
}
|
||||
|
||||
function response($data = [], $httpCode = '200'){
|
||||
private function response($data = [], $httpCode = '200'){
|
||||
http_response_code($httpCode);
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user