new file: software/app.php
new file: software/debug.php new file: software/module/report/routes.php new file: software/module/update/routes.php new file: software/public/index.php new file: software/router.php
This commit is contained in:
1 parent
87e828962b
commit
dc78008721
6 files changed
+233
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
// Reporting endpoint for sensors to report the temperature of each of its sensors etc.
|
||||
|
||||
|
||||
$router->get('/report', function($req) {
|
||||
echo "Nothing to see here!\n";
|
||||
http_response_code(200);
|
||||
});
|
||||
|
||||
$router->post('/report', function($req) {
|
||||
echo 'body:' . var_dump($req->getBody()) . "\n";
|
||||
DumpHTTPRequestToFile::execute("/tmp/out.txt");
|
||||
http_response_code(200);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user