Skip to content

Commit

Permalink
Debuggig.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Oct 23, 2023
1 parent effeeba commit cf8d7d2
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,16 +439,26 @@ def start_vscode(id):
return render_template("vscode.html")


@app.route(
"/vscode_proxy/<path:path>", methods=["GET", "POST", "PUT", "DELETE", "PATCH"]
)
@app.route(
"/vscode_proxy/<path:path>", methods=["GET", "POST", "PUT", "DELETE", "PATCH"]
)
def vscode_proxy(path):
"""
This route acts as a proxy for the VS Code server, forwarding requests and responses.
"""

return """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Debug Page</title>
</head>
<body>
<h1>You're here</h1>
</body>
</html>"""

print(f"VSCode Proxy called with path: {path}")

user_info = session.get("user")
Expand Down

0 comments on commit cf8d7d2

Please sign in to comment.