Handle serving custom routes and static files with a root dir.