Fix Flask route