소스 검색

Editing the autoupdater thingie

Andrea Franceschini 8 년 전
부모
커밋
be85b5ef25
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      pages/api/git-update.php

+ 6 - 1
pages/api/git-update.php

@@ -1,3 +1,8 @@
 <?php
 
-echo file_get_contents('php://input');
+$data = json_decode(file_get_contents('php://input'));
+$secret = $data['secret'];
+
+header('Content-Type: application/json');
+
+echo '{"ha":"ah"}';