Fix geoapi store geojson for live layers
This commit is contained in:
parent
1b7db43ee7
commit
461c31fb6f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue