Add a logout endpoint.