1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-05-09 03:31:17 +02:00

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/*.map
public/assets/ public/assets/
backend/vendor/ public/api/vendor/
*.log* *.log*

View file

@ -143,8 +143,8 @@ WHERE dictionary=$dictionary";
$result2 = $this->db->query($query2, array( $result2 = $this->db->query($query2, array(
':parts_of_speech' => json_encode($dictionary_object['partsOfSpeech']), ':parts_of_speech' => json_encode($dictionary_object['partsOfSpeech']),
':phonology' => json_encode($linguistics['phonology']), ':phonology' => json_encode($linguistics['phonology']),
':orthography_notes' => $linguistics['orthographyNotes'], ':orthography_notes' => $linguistics['orthography']['notes'],
':grammar_notes' => $linguistics['grammarNotes'], ':grammar_notes' => $linguistics['grammar']['notes'],
)); ));
if ($result2->rowCount() > 0) { if ($result2->rowCount() > 0) {

View file

@ -1,6 +1,7 @@
<?php <?php
class Response { class Response {
private static function defaultHeaders () { private static function defaultHeaders () {
header('Access-Control-Allow-Origin: *');
header('Expires: Sun, 01 Nov 2015 22:46:51 GMT'); 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: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false); header("Cache-Control: post-check=0, pre-check=0", false);