überarbeitetet serviceworker

This commit is contained in:
TLRZ Seyfferth
2018-01-24 17:13:21 +01:00
parent ee717318ee
commit be36363e39
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ if (empty($_POST) && empty(file_get_contents('php://input'))) {
if ($_GET['controller'] == "Article"){
if ($_GET['action'] == "store") {
$json = file_get_contents('php://input');
$file = fopen(__DIR__.'/data/test_articles.json','w');
$file = fopen(__DIR__.'/data/articles.json','w');
fwrite($file, $json);
fclose($file);
echo "Artikel wurden gespeichert.";