wip: added rest api endpoint shiai

This commit is contained in:
marko
2023-12-26 20:24:34 +01:00
parent 49978a48df
commit f2cf7ff764
12 changed files with 245 additions and 44 deletions

View File

@@ -0,0 +1,14 @@
<?php
require_once("inc/bootstrap.php");
require_once("participoLib/shiai.php");
// Sending Response
// - setting header
// - we send a json-formatted response
header("Content-Type: application/json");
// - sending body payload
echo json_encode(
Shiai::dbSelect()
);
?>