controller layer for the endpoints framework