def get_splays()

in dyno/app/api/control.py [0:0]


def get_splays() -> dict:
    """
    Fetch a list of splays

    Exposed via HTTP at /api/splays
    Supported HTTP methods: GET

    Returns
    -------
    dict
        A dictionary containing a list of possible splay. A splay
        is a property across which delayed requests are distributed.

    Examples
    --------
    ❯ curl -s http://localhost:8999/api/splays|jq
    {
        "splays": [
            "User-agent: Safari",
            "IP addresses: 10.0.0.0/8"
        ]
    }
    """
    # Fixed for the time being
    ret = {'splays': ['User-Agent: Safari']}
    return ret