Preheat oven to 400F.
In a bowl, mix together flour, salt, baking powder, cumin, sugar, cayenne pepper.
In a separate bowl, mix together egg, milk, and butter.
Stir the wet ingredients into the dry ingredients.
Then stir in the corn and green onions. Spray cups of a muffin pan with cooking spray. Spoon mixture into the muffing cups.
Bake for 18-20 minutes, or until golden brown.