AI OnAI Off
I have reported a bug that we should add pre and post events around Route registration.
You can add your custom routes in an initializable module but as you say it will be called before the default CMS routes are registered meaning the custom routes will be before the CMS routes in the table.
So if you need to have your routes after the builtin one for now one option is as you say to have a IHttpModule that register routes in the Init method.
Hi,
I'm wondering is there any place to hook some event handler or something to add custom routes to route table if I'm not able to do that in Global.asax (custom route must be added in 3rd party package). I realized that during initializable module - it's too early, as module initialization is done before default routes are regsitered.
Sort of workaround I found using dynamically registered http module that is invoked during requests and adding custom route there.
Just wanted to confirm that there is not other way around or I'm missing something..