diff --git a/.gitignore b/.gitignore index d36672d..7325885 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,6 @@ public/*.js public/*.map public/assets/ -backend/vendor/ +public/api/vendor/ *.log* \ No newline at end of file diff --git a/backend/Db.php b/public/api/Db.php similarity index 100% rename from backend/Db.php rename to public/api/Db.php diff --git a/backend/Dictionary.php b/public/api/Dictionary.php similarity index 98% rename from backend/Dictionary.php rename to public/api/Dictionary.php index f2e0db9..6ce890a 100644 --- a/backend/Dictionary.php +++ b/public/api/Dictionary.php @@ -143,8 +143,8 @@ WHERE dictionary=$dictionary"; $result2 = $this->db->query($query2, array( ':parts_of_speech' => json_encode($dictionary_object['partsOfSpeech']), ':phonology' => json_encode($linguistics['phonology']), - ':orthography_notes' => $linguistics['orthographyNotes'], - ':grammar_notes' => $linguistics['grammarNotes'], + ':orthography_notes' => $linguistics['orthography']['notes'], + ':grammar_notes' => $linguistics['grammar']['notes'], )); if ($result2->rowCount() > 0) { diff --git a/backend/Response.php b/public/api/Response.php similarity index 93% rename from backend/Response.php rename to public/api/Response.php index b09de0e..cf610f1 100644 --- a/backend/Response.php +++ b/public/api/Response.php @@ -1,6 +1,7 @@