Sfoglia il codice sorgente

Editing the autoupdater thingie

Andrea Franceschini 8 anni fa
parent
commit
be85b5ef25
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  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"}';