Added the '/api/disctinct' endpoint