Hey guys,

I'm wondering how do you handle routing in multi-module application?

I've been checking if URI starts with 'backend' and then include backend routes only, or frontend routes otherwise. Although it feels really dirty, I've been using this aproach for two reasons:

  1. I wanted to separate 404 pages for frontend & backend
  2. I was afraid I'm going to cripple performance with too many routes (both frontend and backend).

Regarding number 2, how many routes would be "too much" ?