remove codeigniter

This commit is contained in:
root
2026-06-04 02:41:08 -04:00
parent 4e33882ac7
commit b4e6ac03c5
180 changed files with 457 additions and 2186 deletions
+7 -7
View File
@@ -125,12 +125,12 @@ use App\Http\Controllers\Api\ScannerController;
use App\Http\Controllers\Api\Staff\TimeOffNotificationController;
use App\Http\Controllers\Api\System\AccessDeniedController;
use App\Http\Controllers\Api\Certificates\CertificateController;
// CodeIgniter also registers POST /api/login and POST /api/register (public, no /v1).
// Public auth aliases without the `/v1` prefix.
Route::post('login', [AuthController::class, 'login']);
Route::post('register', [RegisterController::class, 'store']);
/*
| CodeIgniter POST /api/proofread (LanguageTool proxy; session or Bearer like CI auth filter).
| LanguageTool proxy for legacy and current clients.
*/
Route::post('proofread', [ProofreadController::class, 'check'])->middleware('teacher.portal.auth');
@@ -183,7 +183,7 @@ Route::permanentRedirect('attendance-comment-templates/list-data', '/api/v1/atte
Route::permanentRedirect('administrator/attendance-templates', '/api/v1/administrator/attendance-templates');
Route::prefix('v1')->group(function () {
// Parity with CodeIgniter: POST /api/v1/login and POST /api/v1/register (public, no /auth prefix)
// Public auth aliases without the `/auth` prefix.
Route::post('login', [AuthController::class, 'login']);
Route::post('register', [RegisterController::class, 'store']);
@@ -211,7 +211,7 @@ Route::prefix('v1')->group(function () {
Route::post('contact', [SupportContactController::class, 'send']);
/*
| Badge scan kiosk (public, throttled). Logs: authenticated staff (legacy CI RFIDController).
| Badge scan kiosk (public, throttled). Logs: authenticated staff.
*/
Route::post('badge_scan/scan', [BadgeScanController::class, 'scan'])
->middleware('throttle:120,1');
@@ -261,7 +261,7 @@ Route::prefix('v1')->group(function () {
});
/*
| Print requests (CodeIgniter PrintRequests — teacher/admin JSON + uploads).
| Print requests for teacher/admin JSON and uploads.
*/
Route::middleware('auth:api')->prefix('print-requests')->group(function () {
Route::middleware('print_requests.teacher')->group(function () {
@@ -497,7 +497,7 @@ Route::prefix('v1')->group(function () {
});
/*
| CodeIgniter View\AttendanceCommentTemplateController — legacy list/save/delete (auth:api).
| Legacy attendance template list/save/delete endpoints (auth:api).
*/
Route::middleware('auth:api')->prefix('attendance-templates')->group(function () {
Route::get('/', [AttendanceCommentTemplateController::class, 'listData'])->name('api.v1.attendance-templates.legacy');
@@ -560,7 +560,7 @@ Route::prefix('v1')->group(function () {
});
Route::get('teacher/absence-vacation', [TeacherController::class, 'absenceForm']);
Route::post('teacher/absence-vacation', [TeacherController::class, 'submitAbsence']);
// Legacy CI paths: same handler as GET /api/v1/attendance/teacher/form
// Legacy paths: same handler as GET /api/v1/attendance/teacher/form
Route::get('teacher/showupdate-attendance', [TeacherAttendanceApiController::class, 'form']);
Route::get('teacher/showupdate_attendance', [TeacherAttendanceApiController::class, 'form']);
// Legacy alias: same handler as GET /api/v1/scores/overview (teacher score dashboard)