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