Update Saqel Platform: 2026-08-28 15:39:16

This commit is contained in:
Hamza-Ayed
2026-08-28 15:39:16 +03:00
parent 2bcf2d2ba2
commit 974de0a641
5 changed files with 533 additions and 268 deletions
+5 -7
View File
@@ -55,13 +55,11 @@ $router->get('/curriculum-studio', function ($request, $response) {
$response->html(\App\Views\CurriculumStudio::render());
});
$router->get('/api/curriculum/tree', function ($request, $response) {
$response->json([
'status' => 'success',
'data' => \App\Services\CurriculumService::getCurriculumTree()
]);
});
// Real Ministry Curriculum PDF Ingestion & Live Tree API
$router->post('/api/curriculum/upload-pdf', [\App\Controllers\CurriculumController::class, 'uploadPdf']);
$router->get('/api/curriculum/tree', [\App\Controllers\CurriculumController::class, 'getTree']);
$router->get('/api/curriculum/lesson', [\App\Controllers\CurriculumController::class, 'getLessonContent']);
$router->post('/api/curriculum/save-lesson', [\App\Controllers\CurriculumController::class, 'saveLessonContent']);
$router->get('/api/curriculum/search', function ($request, $response) {
$q = $request->getQueryParams()['q'] ?? '';
$response->json([