summaryrefslogtreecommitdiff
path: root/ickapi/version_view.py
blob: 23f723a1a56ef324fbe80688b3143d782db51d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Version view module.

Contains `/version` endpoint implementation.
"""

from aiohttp import web

import ickapi


class VersionView:
    """Endpoint methods."""

    async def get_version(self, request):
        """Return component versions."""
        return web.json_response({'api': ickapi.__version__})