Update main.py
Browse files
main.py
CHANGED
|
@@ -31,10 +31,10 @@ async def verify_api_key(api_key: str = Security(api_key_header)):
|
|
| 31 |
raise HTTPException(status_code=403, detail="Could not validate credentials")
|
| 32 |
return api_key
|
| 33 |
|
| 34 |
-
@app.get("/test")
|
| 35 |
-
async def test(api_key: str = Depends(verify_api_key)):
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
from fastapi.middleware.cors import CORSMiddleware
|
| 40 |
|
|
|
|
| 31 |
raise HTTPException(status_code=403, detail="Could not validate credentials")
|
| 32 |
return api_key
|
| 33 |
|
| 34 |
+
# @app.get("/test")
|
| 35 |
+
# async def test(api_key: str = Depends(verify_api_key)):
|
| 36 |
+
# result = await simple_crawl("https://www.nbcnews.com/business")
|
| 37 |
+
# return {"markdown": result.markdown}
|
| 38 |
|
| 39 |
from fastapi.middleware.cors import CORSMiddleware
|
| 40 |
|