diff --git a/COM-2305/Project/api/reservation/post.php b/COM-2305/Project/api/reservation/post.php index 2e5056b..9dc82ef 100644 --- a/COM-2305/Project/api/reservation/post.php +++ b/COM-2305/Project/api/reservation/post.php @@ -2,6 +2,8 @@ header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Origin: *"); +include("../connected.php"); + $response = []; try { @@ -11,10 +13,8 @@ exit; } - include("../connected.php"); include("../../function/reservation/valid-reservation.php"); include("../../function/reservation/valid-student.php"); - include("../../function/page.php"); $reservation_date = $_POST['reservation_date']; $student_id = $_POST['student_id']; diff --git a/COM-2305/Project/index.html b/COM-2305/Project/index.html index a7b366d..a8e8f87 100644 --- a/COM-2305/Project/index.html +++ b/COM-2305/Project/index.html @@ -7,6 +7,9 @@ +