Move the backend files to /public/api
This commit is contained in:
parent
691346c4ba
commit
ca471da663
|
@ -6,6 +6,6 @@ public/*.js
|
|||
public/*.map
|
||||
public/assets/
|
||||
|
||||
backend/vendor/
|
||||
public/api/vendor/
|
||||
|
||||
*.log*
|
|
@ -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) {
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
class Response {
|
||||
private static function defaultHeaders () {
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Expires: Sun, 01 Nov 2015 22:46:51 GMT');
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
Loading…
Reference in New Issue