forked from Adleraci/adlerka.top
Add some more account actions,
Add return types,
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user