"""Version controller."""
from controllers.models import HttpCode
from version import version


def get_version() -> str:
    """Return app version."""
    result = version()
    if result is None:
        return "Version undefined", HttpCode.logic_error  # type: ignore
    return result

7a9844a3a889b2bf894425f9b3f2c9b6c9a861fc
<mask token>

<mask token>


def get_version() ->str:
    """Return app version."""
    result = version()
    if result is None:
        return 'Version undefined', HttpCode.logic_error
    return result

<mask token>
from controllers.models import HttpCode
from version import version


def get_version() ->str:
    """Return app version."""
    result = version()
    if result is None:
        return 'Version undefined', HttpCode.logic_error
    return result

"""Version controller."""
from controllers.models import HttpCode
from version import version


def get_version() -> str:
    """Return app version."""
    result = version()
    if result is None:
        return "Version undefined", HttpCode.logic_error  # type: ignore
    return result
