Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def convert_html_to_md(html):
|
|
28 |
|
29 |
# GET endpoint to /read/{url:path} expecting URL in path
|
30 |
@app.get("/read/{url:path}", response_class=PlainTextResponse)
|
31 |
-
async def get_markdown_get(url: str):
|
32 |
try:
|
33 |
# Retrieve the full path from the request
|
34 |
full_url = str(request.url)
|
|
|
28 |
|
29 |
# GET endpoint to /read/{url:path} expecting URL in path
|
30 |
@app.get("/read/{url:path}", response_class=PlainTextResponse)
|
31 |
+
async def get_markdown_get(request: Request, url: str):
|
32 |
try:
|
33 |
# Retrieve the full path from the request
|
34 |
full_url = str(request.url)
|