diff --git a/software/app.php b/software/app.php index d041e83..78b501a 100644 --- a/software/app.php +++ b/software/app.php @@ -1,10 +1,18 @@ get('/', function($req) { + echo "Nothing to see here!\n"; + http_response_code(200); +}); + +require_once('update.php'); +require_once('report.php'); +require_once('registration.php'); diff --git a/software/database/sqlite.php b/software/database/sqlite.php new file mode 100644 index 0000000..5750981 --- /dev/null +++ b/software/database/sqlite.php @@ -0,0 +1,10 @@ +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); +}); + diff --git a/software/module/report/routes.php b/software/report.php similarity index 100% rename from software/module/report/routes.php rename to software/report.php diff --git a/software/module/update/routes.php b/software/update.php similarity index 100% rename from software/module/update/routes.php rename to software/update.php