summaryrefslogtreecommitdiff
path: root/web-server/opendc/api/v2/schedulers/endpoint.py
blob: a96fdd8820f2cc1575bdf1103745fec552e6a369 (plain)
1
2
3
4
5
6
7
8
9
from opendc.util.rest import Response

SCHEDULERS = ['DEFAULT']


def GET(_):
    """Get all available Schedulers."""

    return Response(200, 'Successfully retrieved Schedulers.', [{'name': name} for name in SCHEDULERS])