def register_views(app):
    'Registers the pluggable views'
    run_view = code.views.RunCode.as_view('run')
    run_async_view = code.views.RunCodeAsync.as_view('run-async')
    app.add_url_rule('/run', view_func=run_view, methods=['POST'])
    app.add_url_rule('/run-async', view_func=run_async_view, methods=['POST'])
    app.add_url_rule('/get-result/<string:task_id>', view_func=run_async_view, methods=['GET'])
Registers the pluggable views
def register_views(app):
    
    run_view = code.views.RunCode.as_view('run')
    run_async_view = code.views.RunCodeAsync.as_view('run-async')
    app.add_url_rule('/run', view_func=run_view, methods=['POST'])
    app.add_url_rule('/run-async', view_func=run_async_view, methods=['POST'])
    app.add_url_rule('/get-result/<string:task_id>', view_func=run_async_view, methods=['GET'])