fix endpoint to use a single endpoint and differentiate on http verb