Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Add (empty) meshes route to avoid wk error message #119

Merged
merged 3 commits into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions wkconnect/routes/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from .datasource_properties import datasource_properties
from .histogram import histogram
from .meshes import meshes
from .read_data import read_data
from .thumbnail import thumbnail
from .upload import upload
Expand All @@ -12,5 +13,6 @@
thumbnail,
histogram,
upload,
meshes,
url_prefix="/datasets",
)
16 changes: 16 additions & 0 deletions wkconnect/routes/datasets/meshes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from sanic import Blueprint, response
from sanic.request import Request

meshes = Blueprint(__name__)


@meshes.route(
"/<organization_name>/<dataset_name>/layers/<layer_name>/meshes", methods=["GET"]
)
async def get_meshes(
request: Request, organization_name: str, dataset_name: str, layer_name: str
) -> response.HTTPResponse:
del organization_name
del dataset_name
del layer_name
return response.json([])