Handling the testable route as middleware instead of route so later
static assets don't break