I'm working on an application that has two different types of profiles and I want to find the best way to structure my application, which is:
All URLs in my app will start with one of two profiles. Ex: (root / physical_person, root / legal_person);
Many actions / screens will be shared by both profiles, and some of these screens will have different behaviors for each profile, but in others they will have no differences. (Eg root / profile / about, root / profile / contact_form);
I will have files that will be rendered on all the screens of a profile, and other files in the other profile. (Eg header_people, header_people);
Does anyone have any tips to indicate?