def handler(request: bicephalus.Request) -> bicephalus.Response:
+ if not request.path.endswith("/"):
+ return bicephalus.Response(request.path + "/", None, bicephalus.Status.PERMANENT_REDIRECTION)
if request.path == "/":
return blog_pages.Root(request).response()
if re.match(r"/\d{4}/\d{2}/.*/", request.path):
return SimplePage(request, request.path, "About Álex Córcoles").response()
if request.path == "/laspelis/":
return SimplePage(request, request.path, "laspelis").response()
- if re.match(r"/laspelis/\d+/?", request.path):
+ if re.match(r"/laspelis/\d+/", request.path):
return SimplePage(request, request.path.removesuffix("/") + "/", request.path).response()
return page.NotFound(request).response()
type = "git"
url = "https://github.com/alexpdp7/bicephalus.git"
reference = "HEAD"
-resolved_reference = "ca0c7e85d9f6926a08040fc492a31e5b129defa0"
+resolved_reference = "3558c6e0c86e646a8f0fb214e5dce9126497a73b"
[[package]]
name = "charset-normalizer"