Source code for luna_faces.app.handlers.version_handler
from sanic.response import HTTPResponse
from app.handlers.base_handler import BaseRequestHandler
from app.version import VERSION
[docs]class VersionHandler(BaseRequestHandler):
"""
Handler for getting version
"""
[docs] async def get(self) -> HTTPResponse:
"""
Get service version. See `spec_get_version`_.
.. _spec_get_version:
_static/api.html#operation/getVersion
Returns:
response with service version
"""
return self.success(200, outputJson=VERSION)