Pass the server into the endpoint