소스 검색

POST for webhooks.

master
Chris Smith 6 년 전
부모
커밋
2034cfa6b5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      main.py

+ 1
- 1
main.py 파일 보기

@@ -86,7 +86,7 @@ def handle_index():
86 86
     return app.send_static_file("index.html")
87 87
 
88 88
 
89
-@app.route("/hooks/gitea/<path:repo>/<hash>")
89
+@app.route("/hooks/gitea/<path:repo>/<hash>", methods=['POST'])
90 90
 def handle_hook_gitea(repo, hash):
91 91
     print(f"Received hook for repo {repo} with has {hash}")
92 92
     expected_hash = get_hook_key("gitea", repo)

Loading…
취소
저장