summaryrefslogtreecommitdiff
path: root/opendc/api/v1/schedulers/endpoint.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-23 18:08:28 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-23 18:08:28 +0200
commit565ede0dc50c3b2df09c066ea3a28a4901cce547 (patch)
treee81a1bbed43d2eaf7e2be0bc61007963f807b62d /opendc/api/v1/schedulers/endpoint.py
parent6f41be7d9c244b67bfa5ff72f1e90d18fa45b590 (diff)
Add DB handlers and rename to v2
Diffstat (limited to 'opendc/api/v1/schedulers/endpoint.py')
-rw-r--r--opendc/api/v1/schedulers/endpoint.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/opendc/api/v1/schedulers/endpoint.py b/opendc/api/v1/schedulers/endpoint.py
deleted file mode 100644
index 36537764..00000000
--- a/opendc/api/v1/schedulers/endpoint.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from opendc.models.scheduler import Scheduler
-from opendc.util.rest import Response
-
-
-def GET(request):
- """Get all available Schedulers."""
-
- # Get the Schedulers
-
- schedulers = Scheduler.query()
-
- # Return the Schedulers
-
- return Response(
- 200,
- 'Successfully retrieved Schedulers.',
- [x.to_JSON() for x in schedulers]
- )