new file: database/sqlite.php new file: registration.php renamed: module/report/routes.php -> report.php renamed: module/update/routes.php -> update.php
15 lines
360 B
PHP
15 lines
360 B
PHP
<?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);
|
|
});
|
|
|