Switch to gunicorn , need to add config file and proper password loading
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user