Implement the "get nodes" servlet