diff --git a/src/nercone_website/server.py b/src/nercone_website/server.py index a51df0a..bc71e5c 100644 --- a/src/nercone_website/server.py +++ b/src/nercone_website/server.py @@ -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)