diff --git a/Makefile b/Makefile index 8c1c825..136868c 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ build: - if [ ! -d venv ]; then - python3 -m venv venv - fi + if [ ! -d venv ]; then \ + python3 -m venv venv; \ + fi \ venv/bin/pip install requirements.txt diff --git a/listen.py b/listen.py index fc4649e..b8d6a37 100644 --- a/listen.py +++ b/listen.py @@ -4,6 +4,10 @@ from .deploy import handle_request, DeployerRequest app = Flask(__name__) +@app.route("/ping", methods=["GET"]) +def ping(): + return "pong" + @app.route("/gitea", methods=["POST"]) def gitea():