adlerka.top/endpoints/meme.php
2024-04-25 09:04:10 +02:00

12 lines
292 B
PHP

<?php
require_once "lib/meme.php";
function endpoint($endpoint_data): array
{
return match ($endpoint_data["action"]) {
"addMeme" => addMeme($endpoint_data['memetext'], $endpoint_data['imageid']),
default => ["Status" => "Fail", "message" => "Invalid action"],
};
}