@@ -7,12 +7,13 @@ from subprocess import call
from flask import jsonify
from app import app
+
@app.route('/')
def index():
"""Show index page"""
return jsonify(True)
-@app.route('/deploy')
+@app.route('/deploy', methods=['POST'])
def deploy():
"""Run deploy script"""
call(["git", "pull"])