Flush routes before generating OPTIONS methods

I have noticed that OPTIONS routes are not getting generated in some
cases.  Calling the flush method before generating OPTIONS methods
appears to solve the problem.