Prepare ingredients for spaghetti with vegetables. Peel the onion, garlic, eggplant. Cut the eggplants and cherry tomatoes into slices, finely chop the onion and garlic. Tip: Young eggplants do not taste bitter. Older ones with thick skins may have an unpleasant aftertaste. To get rid of it, soak the eggplants in salted water for 40 minutes.
Boil the spaghetti. Boil water and add salt. Drain the spaghetti and cook for 7-8 minutes. Drain the water from the finished product.
Prepare roasted vegetables. Fry the onion in olive oil for 3-4 minutes until translucent. Add eggplants and salt. Cook for a couple of minutes. Add garlic and cherry tomatoes. Add a little salt. Fry for 5-6 minutes. Finally add the thyme sprigs.
Finish cooking the spaghetti with vegetables. Add butter to the pan with vegetables and stir. Remove from heat. Mix spaghetti with frying mixture. Pepper it.
Before serving, sprinkle hot spaghetti with vegetables with Parmesan cheese.