<commit_before>from aiohttp import web


async def get(req):
    """
    Returns a generic message. Used during testing for acquiring a ``session_id``.
         
    """
    return web.json_response({
        "status": "healthy"
    })<commit_msg>Make root endpoint show API information<commit_after>from virtool.handlers.utils import json_response


async def get(req):
    """
    Returns a generic message. Used during testing for acquiring a ``session_id``.
         
    """
    return json_response({
        "endpoints": {
            "account": {
                "url": "/api/account",
                "doc": "https://docs.virtool.ca/web-api/account.html"
            },

            "jobs": {
                "url": "/api/jobs",
                "doc": "https://docs.virtool.ca/web-api/jobs.html"
            },

            "samples": {
                "url": "/api/samples",
                "doc": "https://docs.virtool.ca/web-api/samples.html"
            },

            "analyses": {
                "url": "/api/analyses",
                "doc": "https://docs.virtool.ca/web-api/analyses.html"
            },

            "viruses": {
                "url": "/api/viruses",
                "doc": "https://docs.virtool.ca/web-api/viruses.html"
            }
        }
    })
{'fraction_non_alphanumeric': 0.15217391304347827, 'fraction_numerical': 0.0, 'mean_word_length': 1.4836223506743738, 'pattern_counts': {'":': 17, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7187787', 'n_tokens_mistral': 391, 'n_tokens_neox': 359, 'n_words': 73}