BinaryONe
commited on
Commit
·
b12dfa5
1
Parent(s):
864c592
Cors Issue Test
Browse files
FileStream/server/routes_api.py
CHANGED
|
@@ -59,7 +59,7 @@ async def list_all_tmdb_movies_from_db(request):
|
|
| 59 |
#json_response = json.dumps(response).encode('utf-8')
|
| 60 |
# Return as aiohttp response using web.json_response
|
| 61 |
#return web.json_response(response)
|
| 62 |
-
return web.json_response(json.loads(dumps(response)),
|
| 63 |
|
| 64 |
async def list_all_tmdb_tv_from_db(request):
|
| 65 |
db = Database(Telegram.DATABASE_URL, Telegram.SESSION_NAME)
|
|
|
|
| 59 |
#json_response = json.dumps(response).encode('utf-8')
|
| 60 |
# Return as aiohttp response using web.json_response
|
| 61 |
#return web.json_response(response)
|
| 62 |
+
return web.json_response(json.loads(dumps(response)),headers=CORS_HEADERS)
|
| 63 |
|
| 64 |
async def list_all_tmdb_tv_from_db(request):
|
| 65 |
db = Database(Telegram.DATABASE_URL, Telegram.SESSION_NAME)
|