router layer for the endpoints framework