add explicit app.py rewrite routes, gold test