@hapic.with_api_doc()
@hapic.handle_exception(UserNotFound, HTTPStatus.NOT_FOUND)
@hapic.handle_exception(UserAvatarNotFound, HTTPStatus.NOT_FOUND)
@hapic.input_path(UserIdPathSchema())
@hapic.output_file(['image/png'])
def get_user_avatar(self, id, hapic_data: HapicData):
    return HapicFile(file_path=UserLib().get_user_avatar_path(user_id=int(hapic_data.path['id'])))
@hapic.with_api_doc()
@hapic.handle_exception(UserNotFound, HTTPStatus.NOT_FOUND)
@hapic.handle_exception(UserAvatarNotFound, HTTPStatus.NOT_FOUND)
@hapic.input_path(UserIdPathSchema())
@hapic.output_file(['image/png'])
def get_user_avatar(self, id, hapic_data: HapicData):
    return HapicFile(file_path=UserLib().get_user_avatar_path(user_id=int(hapic_data.path['id'])))