bootstrap

This commit is contained in:
Henning Jacobs
2016-12-12 21:12:06 +01:00
commit b082e74524
4 changed files with 57 additions and 0 deletions

24
app.py Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env python3
import gevent.monkey
gevent.monkey.patch_all()
import connexion
import flask
from gevent.wsgi import WSGIServer
app = connexion.App(__name__)
@app.app.route('/')
def index():
return flask.render_template('index.html')
def get_clusters():
pass
app.add_api('swagger.yaml')
if __name__ == '__main__':
app.run(port=8080, server='gevent')