While the pasta is boiling, crack egg in a bowl and whisk. Then, add garlic, chopped parsley, oregano, chili flakes, parmesan cheese, lemon zest and lemon juice and mix.
Add boiled pasta to the bowl and give it a mix using a fork or a tong.
Pour two tablespoons of oil in a pan and heat it.
Using a fork or a tong, take little bit of the spaghetti mixture and drop it to the hot pan. Fry it at a medium high heat for about 2 minutes on each side.
Once done, sprinkle some salt and lemon pepper(optional) on top. Serve hot.