Initial backend folder structure and setup

This commit is contained in:
MosLaptop\Not.Reda
2025-06-13 12:32:36 +02:00
parent 504f6ef3e2
commit 2ccfce135d
6 changed files with 70 additions and 0 deletions

9
routes/api.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
require_once __DIR__ . '/../app/Config/database.php';
require_once __DIR__ . '/../app\Controllers\ProjectController.php';
$db = (new Database())->getConnection();
$controller = new ProjectController($db);
header("Content-Type: application/json");
echo json_encode($controller->getAllProjects());