Zend certified PHP/Magento developer

Would there be any actual secure, server side way to lock away react routes?

So I don’t know what I am asking is even possible but is there any way, like you can do with static HTML and CSS websites to only let a person see the “/test” route for example if they are verified?

I know this is possible with react-router-dom but as a perfectionist, I want to do it server side with preferably express and my own middleware (using JWT and MongoDB) to check user identities ETC.

Thanks a lot!