Add conditional to routes