Commit
·
eefdb3e
1
Parent(s):
eed48d7
Addition of Middlewares - Fix
Browse files
FileStream/server/API/__init__.py
CHANGED
@@ -15,19 +15,21 @@ from .uploads import upload_file
|
|
15 |
|
16 |
|
17 |
#-----------------------------Functions------------------------#
|
18 |
-
async def handle_v2(request):
|
19 |
-
return web.Response(text="Hello from app api!")
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
"""
|
24 |
cors = aiohttp_cors.setup(api, defaults={"*": aiohttp_cors.ResourceOptions(
|
25 |
allow_credentials=False,
|
26 |
expose_headers="*",
|
27 |
allow_headers="*",
|
28 |
allow_methods="*"
|
29 |
)})
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
#---------------------------Routes ---------------------------#
|
33 |
# Web server setup with optimized CORS handling
|
|
|
15 |
|
16 |
|
17 |
#-----------------------------Functions------------------------#
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
cors = aiohttp_cors.setup(api, defaults={"*": aiohttp_cors.ResourceOptions(
|
19 |
allow_credentials=False,
|
20 |
expose_headers="*",
|
21 |
allow_headers="*",
|
22 |
allow_methods="*"
|
23 |
)})
|
24 |
+
|
25 |
+
|
26 |
+
async def handle_v2(request):
|
27 |
+
return web.Response(text="Hello from app api!")
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
|
34 |
#---------------------------Routes ---------------------------#
|
35 |
# Web server setup with optimized CORS handling
|