Does anyone know of a way to configure express to add a prefix before all routes automatically? for example, currently I have:
/
/route1
/route2
However, I want to add a prefix like:
/prefix/
/prefix/route1
/prefix/route2
Right now I need to define prefix
manually to all of my routes but would like a more automated/configurable way. Can someone help?
Thanks in advance!