feat(preset-manager): category dropdown + generator modal

This commit is contained in:
2026-07-31 05:50:55 +07:00
parent 5e8664af1c
commit bc951e75af
4 changed files with 128 additions and 79 deletions
+9
View File
@@ -89,3 +89,12 @@ async def get_favicon():
from fastapi.responses import FileResponse
return FileResponse(favicon_path, media_type="image/svg+xml")
return HTMLResponse(content="", status_code=404)
@app.get("/ai-prompt-generator", response_class=HTMLResponse)
async def get_ai_prompt_generator():
md_path = os.path.join(settings.BASE_DIR, "md", "49_AI_PROMPT_GENERATOR.md")
if not os.path.exists(md_path):
return HTMLResponse(content="<h1>File not found</h1>", status_code=404)
with open(md_path, "r", encoding="utf-8") as file:
return HTMLResponse(content=file.read(), status_code=200)