Browse Source

basic app update

develop
Keith 8 years ago
parent
commit
31da5c8583
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      app.py

+ 18
- 0
app.py View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 *-*
from flask import Flask
from flask import request
import json

app = Flask(__name__)

@app.route("/status")
def status_endpoint():
data = {
"appname": "My awesome app",
"version": "0.1",
"creator": "BigBird007"
}
return json.dumps(data)

if __name__ == "__main__":
app.run('127.0.0.1', port=5151, debug=True)

Loading…
Cancel
Save