feat: Add curl support for now pages
All checks were successful
Build Docker / BuildImage (push) Successful in 48s

This commit is contained in:
2025-10-30 19:36:43 +11:00
parent 03dae87272
commit 8d832372cd
4 changed files with 83 additions and 4 deletions

View File

@@ -115,7 +115,6 @@ def curl_response(request):
tools = get_tools_data()
return render_template("tools.ascii",header=get_header(),tools=tools), 200, {'Content-Type': 'text/plain; charset=utf-8'}
if os.path.exists(f"templates/{path}.ascii"):
return render_template(f"{path}.ascii",header=get_header()), 200, {'Content-Type': 'text/plain; charset=utf-8'}