cadwyn 4.2.0__tar.gz → 4.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cadwyn might be problematic. Click here for more details.

Files changed (27) hide show
  1. {cadwyn-4.2.0 → cadwyn-4.2.1}/PKG-INFO +1 -1
  2. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/applications.py +3 -1
  3. {cadwyn-4.2.0 → cadwyn-4.2.1}/pyproject.toml +1 -1
  4. {cadwyn-4.2.0 → cadwyn-4.2.1}/LICENSE +0 -0
  5. {cadwyn-4.2.0 → cadwyn-4.2.1}/README.md +0 -0
  6. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/__init__.py +0 -0
  7. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/__main__.py +0 -0
  8. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/_asts.py +0 -0
  9. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/_importer.py +0 -0
  10. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/_render.py +0 -0
  11. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/_utils.py +0 -0
  12. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/changelogs.py +0 -0
  13. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/exceptions.py +0 -0
  14. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/middleware.py +0 -0
  15. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/py.typed +0 -0
  16. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/route_generation.py +0 -0
  17. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/routing.py +0 -0
  18. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/schema_generation.py +0 -0
  19. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/static/__init__.py +0 -0
  20. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/static/docs.html +0 -0
  21. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/structure/__init__.py +0 -0
  22. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/structure/common.py +0 -0
  23. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/structure/data.py +0 -0
  24. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/structure/endpoints.py +0 -0
  25. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/structure/enums.py +0 -0
  26. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/structure/schemas.py +0 -0
  27. {cadwyn-4.2.0 → cadwyn-4.2.1}/cadwyn/structure/versions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cadwyn
3
- Version: 4.2.0
3
+ Version: 4.2.1
4
4
  Summary: Production-ready community-driven modern Stripe-like API versioning in FastAPI
5
5
  Home-page: https://github.com/zmievsa/cadwyn
6
6
  License: MIT
@@ -319,7 +319,9 @@ class Cadwyn(FastAPI):
319
319
  return req.scope.get("root_path", "").rstrip("/")
320
320
 
321
321
  def _render_docs_dashboard(self, req: Request, docs_url: str):
322
- base_url = str(req.base_url).rstrip("/")
322
+ base_host = str(req.base_url).rstrip("/")
323
+ root_path = req.scope.get("root_path", "")
324
+ base_url = base_host + root_path
323
325
  table = {version: f"{base_url}{docs_url}?version={version}" for version in self.router.sorted_versions}
324
326
  if self._there_are_public_unversioned_routes():
325
327
  table |= {"unversioned": f"{base_url}{docs_url}?version=unversioned"}
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "cadwyn"
3
- version = "4.2.0"
3
+ version = "4.2.1"
4
4
  description = "Production-ready community-driven modern Stripe-like API versioning in FastAPI"
5
5
  authors = ["Stanislav Zmiev <zmievsa@gmail.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes