This commit is contained in:
David Tai
2019-04-27 12:24:09 -05:00
parent b13dc95622
commit 3315e96f06
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -102,6 +102,9 @@ syncstatus:
blocknumber:
kubectl exec -it $(pod) -- $(geth) attach --exec 'eth.blockNumber'
deps:
pip install - ./requirements.txt
# Run Server
serve:
python api.py
+3
View File
@@ -1,9 +1,12 @@
from functools import wraps
from flask import Flask, request
from flask_restful import Resource, Api
from flask_cors import CORS
from bootnode import Bootnode
app = Flask(__name__)
CORS(app)
api = Api(app)
def convert_to_nodes(deployments, services, pods):
+3
View File
@@ -7,4 +7,7 @@ google-cloud-container
oauth2client
flask
flask_restful
flask_cors
functools
>>>>>>> add cors
waitress