Updated Flask route snippet