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:
parent
691346c4ba
commit
ca471da663
10 changed files with 4 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -6,6 +6,6 @@ public/*.js
|
||||||
public/*.map
|
public/*.map
|
||||||
public/assets/
|
public/assets/
|
||||||
|
|
||||||
backend/vendor/
|
public/api/vendor/
|
||||||
|
|
||||||
*.log*
|
*.log*
|
|
@ -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) {
|
|
@ -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);
|
0
backend/composer.lock → public/api/composer.lock
generated
0
backend/composer.lock → public/api/composer.lock
generated
Loading…
Add table
Reference in a new issue