Fixed bug in /v1/endpoints/