httpbinx 1.8.0__py3-none-any.whl → 1.8.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.
- httpbinx/__init__.py +1 -1
- httpbinx/main.py +10 -0
- {httpbinx-1.8.0.dist-info → httpbinx-1.8.1.dist-info}/METADATA +1 -1
- {httpbinx-1.8.0.dist-info → httpbinx-1.8.1.dist-info}/RECORD +7 -7
- {httpbinx-1.8.0.dist-info → httpbinx-1.8.1.dist-info}/WHEEL +0 -0
- {httpbinx-1.8.0.dist-info → httpbinx-1.8.1.dist-info}/entry_points.txt +0 -0
- {httpbinx-1.8.0.dist-info → httpbinx-1.8.1.dist-info}/licenses/LICENSE +0 -0
httpbinx/__init__.py
CHANGED
httpbinx/main.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
from pathlib import Path
|
2
2
|
|
3
3
|
from fastapi import FastAPI
|
4
|
+
from fastapi.middleware.cors import CORSMiddleware
|
4
5
|
from fastapi.staticfiles import StaticFiles
|
5
6
|
|
6
7
|
from httpbinx.meta import get_tags_metadata
|
@@ -15,6 +16,15 @@ app = FastAPI(
|
|
15
16
|
openapi_tags=get_tags_metadata()
|
16
17
|
)
|
17
18
|
|
19
|
+
app.add_middleware(
|
20
|
+
CORSMiddleware,
|
21
|
+
allow_origins=['*'],
|
22
|
+
allow_credentials=True,
|
23
|
+
allow_methods=['*'],
|
24
|
+
allow_headers=['*'],
|
25
|
+
|
26
|
+
)
|
27
|
+
|
18
28
|
# mount static files
|
19
29
|
static_dir = Path(__file__).parent / 'static'
|
20
30
|
app.mount(
|
@@ -1,13 +1,13 @@
|
|
1
|
-
httpbinx-1.8.
|
2
|
-
httpbinx-1.8.
|
3
|
-
httpbinx-1.8.
|
4
|
-
httpbinx-1.8.
|
5
|
-
httpbinx/__init__.py,sha256
|
1
|
+
httpbinx-1.8.1.dist-info/METADATA,sha256=TvHx9IGXNe2qWaF38e8o01JcIRA8SU53QoZgKif3AWY,3780
|
2
|
+
httpbinx-1.8.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
httpbinx-1.8.1.dist-info/entry_points.txt,sha256=sRkqxXJlZzL_lyEEQOecT_wue4JP64lYhpLwrPCZ-lI,66
|
4
|
+
httpbinx-1.8.1.dist-info/licenses/LICENSE,sha256=t6oZPzEcm1CsBu9sB_8JYTc5rSOUhyQUee5qvAg4o-A,1060
|
5
|
+
httpbinx/__init__.py,sha256=-kQbFZawSi7IDtWAo8shTSvO6CfZEbueUnFv5G7NenU,72
|
6
6
|
httpbinx/cli.py,sha256=bMPWV5HbOzqNJr3HBqFsZkaFqLI5YJneQQpAzF66mOg,1417
|
7
7
|
httpbinx/constants.py,sha256=kXeT_Yzl_-4SJT_a7RxU5dfXBTe4-b1Zg8TBF-8AGbs,870
|
8
8
|
httpbinx/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
httpbinx/helpers.py,sha256=VVwjLpEKxi_awEPqbgb8tfWnhJEHSQFTsthE0pBKgp4,4373
|
10
|
-
httpbinx/main.py,sha256=
|
10
|
+
httpbinx/main.py,sha256=SjOjlYpaXMeSf2nqYJ-fY5RNpOFG1xEHe6bS3HM9ygg,837
|
11
11
|
httpbinx/meta.py,sha256=h6scAO050bHFiy7UG2Q8MsyJsAHWMsZAFmZntdUwTAs,1699
|
12
12
|
httpbinx/routers/__init__.py,sha256=xwbZGA3-sV07HCPAly8o5uUJGbdKH3pBHUakXEjvRK4,1409
|
13
13
|
httpbinx/routers/anything.py,sha256=_FK1D9xEONlVIF_rvlqe_tBSsmG7ba8K_m-kGFotWWg,1923
|
@@ -36,4 +36,4 @@ httpbinx/static/images/wolf_1.webp,sha256=Vnz6-U668nnOpOsLwFxGVQIftO4ASspSwJZwnT
|
|
36
36
|
httpbinx/templates/moby.html,sha256=o519fgNb4vga6kx6ARW3MYpV7xrRJFzmyrOZwUmrYw8,3962
|
37
37
|
httpbinx/templates/sample.xml,sha256=K12JbH36KNaAaBLkfyOhsUeXc-GfLHluHffGY3l2-V0,550
|
38
38
|
httpbinx/templates/trackingscripts.html,sha256=3E-Lg6NpBpF74H3srJuswtHfD87gNEsuVxsjm9cqIYM,625
|
39
|
-
httpbinx-1.8.
|
39
|
+
httpbinx-1.8.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|