Is there a way to make it not match /apiand /assets?
router.use("/:group", groupRouter);
I tried the following but it did not work.
router.use("/:group(!(api|assets))", groupRouter);
Also, I tried using a regex here, but node gave me an error stating that it was expecting a callback, not a regex.
Note: apparently it .usedoesn’t record group, but this is not necessary in my case. I just need it to match all but a few words.
source
share