addMeme($endpoint_data['memetitle'], $endpoint_data['memetext'], $endpoint_data['imageid']), "renderGallery" => renderMemeGallery(), default => ["Status" => "Fail", "message" => "Invalid action"], }; }