express-like routes for the front-end history api