--
This commit is contained in:
@@ -94,7 +94,7 @@ async def fake_error_page(request: Request, code: str):
|
||||
|
||||
@app.api_route("/{full_path:path}", methods=["GET", "POST", "HEAD"])
|
||||
async def default_response(request: Request, full_path: str) -> Response:
|
||||
if not full_path.endswith(".html") or not full_path.endswith(".md"):
|
||||
if not full_path.endswith(".html") and not full_path.endswith(".md"):
|
||||
try:
|
||||
if static := resolve_static_file(full_path):
|
||||
return FileResponse(static)
|
||||
|
||||
Reference in New Issue
Block a user