Przeglądaj źródła

Update deploy route

JoostSijm 6 lat temu
rodzic
commit
70bd527165
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      app/flaskr.py

+ 2 - 1
app/flaskr.py

@@ -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"])