Heat olive oil in a pan over medium heat. Add garlic and sauté for 1 minute, stirring frequently. Add artichoke hearts and spinach. Stir to combine and cook until spinach begins to wilt. Add cream cheese,
mayo, garlic powder, salt, pepper and red pepper flakes to pan and stir to combine. Heat through and adjust seasonings as needed.