<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\NotificationController;

Route::get('/', function () {
    return redirect()->route('filament.admin.pages.dashboard');
});

// 包含API路由
require __DIR__.'/api.php';
Route::get('/test-math', function() { return view('test-math'); });
Route::get('/test-case', function() { return view('test-case'); });
Route::view('/knowledge-mindmap-public', 'public.knowledge-mindmap');
Route::get('/admin/intelligent-exam/pdf/{paper_id}', [\App\Http\Controllers\ExamPdfController::class, 'show'])->name('filament.admin.auth.intelligent-exam.pdf');

// 检查通知的路由
Route::get('/admin/question-management/check-notifications', [NotificationController::class, 'checkNotifications']);
