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

Commit

Permalink
Add (empty) meshes route to avoid wk error message (#119)
Browse files Browse the repository at this point in the history
* Add (empty) meshes route to avoid wk error message

* fix route

* format
  • Loading branch information
fm3 authored Oct 28, 2021
1 parent 59d9209 commit 3729e78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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([])

0 comments on commit 3729e78

Please sign in to comment.