Move the backend files to /public/api

This commit is contained in:
Robbie Antenesse 2018-01-07 16:01:40 -07:00
parent 691346c4ba
commit ca471da663
10 changed files with 4 additions and 3 deletions

2
.gitignore vendored
View File

@ -6,6 +6,6 @@ public/*.js
public/*.map
public/assets/
backend/vendor/
public/api/vendor/
*.log*

View File

@ -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) {

View File

@ -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);