modified: app.php

new file:   database/sqlite.php
new file:   registration.php
renamed:    module/report/routes.php -> report.php
renamed:    module/update/routes.php -> update.php
This commit is contained in:
Sven Luethi committed 2024-07-03 16:16:46 +02:00
1 parent 96a281ae00
commit 9c2de8aad5
5 files changed
+36 -4

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<?php
// Device registration endpoint
$router->get('/registration', function($req) {
echo "Nothing to see here at registration!\n";
http_response_code(200);
});
$router->post('/registration', function($req) {
echo 'body:' . var_dump($req->getBody()) . "\n";
//DumpHTTPRequestToFile::execute("/tmp/out.txt");
http_response_code(200);
});