Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,18 @@ An asynchronous FastAPI microservice that optimizes input prompts using the Goog
|
|
| 90 |
@app.get("/agents.md")
|
| 91 |
async def get_agents_md():
|
| 92 |
return Response(content=AGENTS_MD_CONTENT, media_type="text/markdown")
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
@app.get("/", response_class=HTMLResponse)
|
| 96 |
async def read_items():
|
|
|
|
| 90 |
@app.get("/agents.md")
|
| 91 |
async def get_agents_md():
|
| 92 |
return Response(content=AGENTS_MD_CONTENT, media_type="text/markdown")
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
@app.get("/robots.txt")
|
| 96 |
+
async def get_robots_txt():
|
| 97 |
+
robots_content = (
|
| 98 |
+
"User-agent: *\n"
|
| 99 |
+
"Allow: /\n"
|
| 100 |
+
"Allow: /agents.md\n"
|
| 101 |
+
"Disallow: /optimize\n"
|
| 102 |
+
)
|
| 103 |
+
return Response(content=robots_content, media_type="text/plain")
|
| 104 |
+
|
| 105 |
|
| 106 |
@app.get("/", response_class=HTMLResponse)
|
| 107 |
async def read_items():
|