Fix use of endpoints
Merge pull request #13 from gdelente/endpoints

Fix use of endpoints