from services.work import stream_response def register_routes(app): @app.route('/ai/stream', methods=['POST']) def ai_stream_route(): return stream_response()