old_contents: 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"
      })
  
new_contents: 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"
              }
          }
      })
  
subject: Make root endpoint show API information