'How to make .net handle unknown react routes

I have a .net core web application with razor pages. We are migrating one of the modules to react front-end. Now when react is introduced to the project every route is being handled by react. I am not able to view the other modules which are still using razor pages.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source