Fix addEndpoint route
Merge pull request #4 from rymdjs/fix/cors-requests

Fix addEndpoint route