Preheat oven to 425. Put the oil into a medium saute pan and turn on medium-low. Now add the garlic and shallot and saute for 2-3 minutes. Add the mushrooms and thyme, red pepper flakes and stir. Put the pan into the oven and roast for 10 minutes. If your saute pan is not oven safe, transfer the mixture onto a shallow baking pan to put in the oven.