Download api/controllers/console/ping.py from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 249 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/console/ping.py
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/api/controllers/console/ping.py
-
curl -L -o ping.py https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/console/ping.py
249 Bytes
| from flask_restful import Resource | |
| from controllers.console import api | |
| class PingApi(Resource): | |
| def get(self): | |
| """ | |
| For connection health check | |
| """ | |
| return {"result": "pong"} | |
| api.add_resource(PingApi, "/ping") | |