I'm trying to sort out getting web api routing registered without it crashing after a site restart.
I am running the latest version of Sitefinity 8.2.5904
The first boot everything works fine and then if I do something like disable/enable a module it redoes the Sitefinity bootstrapper code and my webapi routes crash with
"The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after all other initialization code."
Here is the code that I'm running: