Preheat oven to 350°F (175°C). Lightly grease an 8x8-inch baking dish with olive oil.
In a small skillet, heat olive oil over medium heat. Add onion and garlic, cook for 3–4 minutes until soft and fragrant.
Add chopped spinach to the skillet. Cook for 1–2 minutes until wilted. Remove from heat.
In a large bowl, whisk together eggs, milk, salt, and pepper.
Stir in the sautéed spinach and onions. Fold in the crumbled feta.
Pour the mixture into the prepared baking dish.
Bake for 25–30 minutes, or until the eggs are set and the top is lightly golden.
Let cool slightly, then cut into squares and serve warm.