Register an endpoint for the v2 API
Merge pull request #194 from vuntz/v2-endpoint

Register an endpoint for the v2 API