renamed endpoints path to api