Fix geoapi store geojson for live layers

This commit is contained in:
phil 2023-12-17 15:22:52 +05:30
parent 1b7db43ee7
commit 461c31fb6f

View file

@ -64,7 +64,8 @@ async def get_geojson(store_name,
if await redis_store.has_channel(store_name):
## Live layers
data = await redis_store.get_layer_as_json(store_name)
return data.decode()
return Response(content=data.decode(),
media_type="application/json")
# elif not model:
# raise HTTPException(status.HTTP_404_NOT_FOUND)