This repository has been archived by the owner on May 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add (empty) meshes route to avoid wk error message (#119)
* Add (empty) meshes route to avoid wk error message * fix route * format
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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([]) |