Skip to content

Commit

Permalink
Removing path parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Oct 23, 2023
1 parent b671b75 commit 8deae73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ def start_vscode(id):


@app.route(
"/vscode_proxy/<path:path>", methods=["GET", "POST", "PUT", "DELETE", "PATCH"]
"/vscode_proxy", methods=["GET", "POST", "PUT", "DELETE", "PATCH"]
)
def vscode_proxy(path):
def vscode_proxy():
"""
This route acts as a proxy for the VS Code server, forwarding requests and responses.
"""
Expand Down
2 changes: 1 addition & 1 deletion app/templates/vscode.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<h1>VS Code Editor</h1>

<!-- iFrame embedding the VS Code instance -->
<iframe src="{{ url_for('vscode_proxy', path='') }}" style="width:100%; height:800px;" frameborder="0"></iframe>
<iframe src="{{ url_for('vscode_proxy') }}" style="width:100%; height:800px;" frameborder="0"></iframe>

{% endblock %}

0 comments on commit 8deae73

Please sign in to comment.