feat: X-Redirect pages
This commit is contained in:
+4
-1
@@ -7,11 +7,14 @@ class Page:
|
||||
with_index: bool = False
|
||||
host: str | None = None
|
||||
token_hash: str | None = None
|
||||
redirect: str | None = None
|
||||
|
||||
def __repr__(self) -> str:
|
||||
out = f"/{self.path}/"
|
||||
if self.host is not None:
|
||||
out += f" [{self.host}]"
|
||||
if not self.with_index:
|
||||
if self.redirect is not None:
|
||||
out += f" (redirect: {self.redirect})"
|
||||
elif not self.with_index:
|
||||
out += " (no index)"
|
||||
return out
|
||||
|
||||
Reference in New Issue
Block a user