
Made with AI
Cook the spaghetti according to the package instructions until al dente. Drain and set aside.
In a large pan, heat the olive oil over medium heat.
Add the chopped onion and sauté until translucent, about 5 minutes.
Add the minced garlic and red pepper flakes, and sauté for another minute until fragrant.
Add the sliced mushrooms to the pan and cook until they are browned and tender, about 5-7 minutes.
Pour in the tomato sauce, stir well, and let it simmer for 10 minutes.
Season the sauce with salt and black pepper to taste.
Add the cooked spaghetti to the sauce and toss to combine.
Serve the pasta hot, garnished with fresh basil leaves.