Tweaked routes to use rootPath from env