Update endpoint.go