# -*- coding: utf-8 -*-
from flask_api import status
from flask_restful import Resource

from app.modules import frest


_URL = '/'


class Index(Resource):
    @frest.API
    def get(self):
        return None, status.HTTP_200_OK

# -*- coding: utf-8 -*-
from flask_api import status
from flask_restful import Resource

from app.config import ENVIRONMENT, API_VERSION, APP_VERSION
from app.modules import frest


_URL = '/'


class Index(Resource):
    @frest.API
    def get(self):
        _return = {
            'environment': ENVIRONMENT,
            'version': {
                'api': API_VERSION,
                'app': APP_VERSION
            }
        }

        return _return, status.HTTP_200_OK

Return environment, versions