This already exists, unless I misunderstand your question.
You can set your url for each endpoint to something like
https://{{Product}}/{{FolderName}}
Then, right click on the folder, click on Edit and then in the Pre-Request tab, add this code:
pm.globals.set(“FolderName”, “Auth”); // (or whatever the folder name is).
Do this Pre-Request add for each of your folders, setting the var to the Folder’s name.
Poof. Done.