Flask server-side