from flask import Flask from flask_restful import Api, Resource import os import pbrAyctCore.core as core app = Flask(__name__) api = Api(app) class Hello(Resource): def get(self): return core.getTestString() api.add_resource(Hello, "/hello") def create_app(): return app if __name__ == "__main__": port = int(os.environ.get('PORT', 5000)) app.run(host = '0.0.0.0', port = port)