cadwyn 4.2.0__py3-none-any.whl → 4.2.1__py3-none-any.whl

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.

cadwyn/applications.py CHANGED
@@ -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
  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
@@ -4,7 +4,7 @@ cadwyn/_asts.py,sha256=kNDXS0Ju0pYZyohAmJNVgJpspwKai5_a9tbekkGehUE,5130
4
4
  cadwyn/_importer.py,sha256=2mZrDHlfY2heZsMBW-9RBpvKsCk9I-Wa8pxZ6f2f8gY,1074
5
5
  cadwyn/_render.py,sha256=LJ-R1TrBgMJpTkJb6pQdRWaMjKyw3R6eTlXXEieqUw0,5466
6
6
  cadwyn/_utils.py,sha256=GK9w_qzyOI_o6UaGVfwLLYhnJFMzXistoYI9fq2E9dE,1159
7
- cadwyn/applications.py,sha256=Ar-wHBp6om5K_g74JsJwMO0NscKPQpUouWg-1H5a2iQ,15495
7
+ cadwyn/applications.py,sha256=Al-93weOC9W82HpJbrgfJ_onw3xYRg70X7NE74-Jky0,15588
8
8
  cadwyn/changelogs.py,sha256=SdrdAKQ01mpzs-EN_zg-D0TY7wxsibjRjLMhGcI4q80,20066
9
9
  cadwyn/exceptions.py,sha256=VlJKRmEGfFTDtHbOWc8kXK4yMi2N172K684Y2UIV8rI,1832
10
10
  cadwyn/middleware.py,sha256=8cuBri_yRkl0goe6G0MLwtL04WGbW9Infah3wy9hUVM,3372
@@ -21,8 +21,8 @@ cadwyn/structure/endpoints.py,sha256=9FFnbqPM9v0CP6J6tGhMNKVvWqA9u3ZjI2Fannr2Rl0
21
21
  cadwyn/structure/enums.py,sha256=bZL-iUOUFi9ZYlMZJw-tAix2yrgCp3gH3N2gwO44LUU,1043
22
22
  cadwyn/structure/schemas.py,sha256=D0BD1D3v9MRdVWchU9JM2zHd0dvB0UgXHDGFCe5aQZc,8209
23
23
  cadwyn/structure/versions.py,sha256=cyBSVyYwe50V8g19G7y2rIFR6OxSVAF9Q98u1GNZiyU,32533
24
- cadwyn-4.2.0.dist-info/LICENSE,sha256=KeCWewiDQYpmSnzF-p_0YpoWiyDcUPaCuG8OWQs4ig4,1072
25
- cadwyn-4.2.0.dist-info/METADATA,sha256=X7fWn-_w1M3y189xXqfh2Os2se0yTlnnl2COTRfuXSo,4420
26
- cadwyn-4.2.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
27
- cadwyn-4.2.0.dist-info/entry_points.txt,sha256=eO05hLn9GoRzzpwT9GONPmXKsonjuMNssM2D2WHWKGk,46
28
- cadwyn-4.2.0.dist-info/RECORD,,
24
+ cadwyn-4.2.1.dist-info/LICENSE,sha256=KeCWewiDQYpmSnzF-p_0YpoWiyDcUPaCuG8OWQs4ig4,1072
25
+ cadwyn-4.2.1.dist-info/METADATA,sha256=QfwoW6GwO9q14QbG6LBix2dKGGutSZNkAclCHyWjHkM,4420
26
+ cadwyn-4.2.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
27
+ cadwyn-4.2.1.dist-info/entry_points.txt,sha256=eO05hLn9GoRzzpwT9GONPmXKsonjuMNssM2D2WHWKGk,46
28
+ cadwyn-4.2.1.dist-info/RECORD,,
File without changes