Switch to gunicorn , need to add config file and proper password loading
All checks were successful
Datadog Software Composition Analysis / Datadog SBOM Generation and Upload (push) Successful in 16s
Datadog Static Analysis / Datadog Static Analyzer (push) Successful in 28s

This commit is contained in:
2025-02-28 23:23:16 -05:00
parent c5caa0848b
commit 4d79f86df4
7 changed files with 429 additions and 28 deletions

View File

@ -51,7 +51,6 @@ class RouteManager:
Any illegal path should raise an exception
"""
file_path: Path = self.config.content_dir / (path if path else "index.md")
print(file_path)
if file_path < self.config.content_dir:
raise Exception("Illegal path")
@ -65,11 +64,7 @@ class RouteManager:
def default_route(self, path: str):
try:
self._ensure_route(path)
print("all good")
print(path)
print("=============")
except Exception as e:
print(e)
return render_error_page(
404,
"Not Found",