wip: added rest api endpoint shiai
This commit is contained in:
14
homepage/participo/api/shiai.php
Normal file
14
homepage/participo/api/shiai.php
Normal 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()
|
||||
);
|
||||
?>
|
||||
Reference in New Issue
Block a user