Class-based routes for Flask