瀏覽代碼

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"}';