from flask import Flask, request
from pprint import pprint
import json

app = Flask(__name__)
lastCommit = "No recorded commits!"

@app.route("/")
def hello():
  return "IntegralGit: continuous integration via GitHub"

@app.route("/update", methods=["POST"])
def update():
  print json.dumps(request.form['payload'])
  return

if __name__=="__main__":
  app.run(host="0.0.0.0", debug=True)

from flask import Flask, request
from pprint import pprint
import json

app = Flask(__name__)
lastCommit = "No recorded commits!"

@app.route("/")
def hello():
  return "IntegralGit: continuous integration via GitHub"

@app.route("/latest")
def latest():
  return lastCommit

@app.route("/update", methods=["POST"])
def update():
  payload = json.dumps(request.form['payload'])
  lastCommit = payload['commits'][0]['message']
  return ""

if __name__=="__main__":
  app.run(host="0.0.0.0", debug=True)

Add code to show last commit message
Add code to show last commit message
