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