Add some more account actions,

Add return types,
This commit is contained in:
2024-01-31 22:05:23 +01:00
parent a4fd20ad00
commit 3d22ff555e
9 changed files with 194 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
<?php
function runEndpoint($endpoint_file)
function runEndpoint($endpoint_file): ?array
{
$endpoint_data = $_POST;
@@ -10,7 +10,7 @@ function runEndpoint($endpoint_file)
}
function getEndpoint($endpoint_name)
function getEndpoint($endpoint_name): false|string
{
$output = array();
$output["status"] = "fail";