Update Saqel Platform: 2026-08-28 15:39:16
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user