fix admin trailing
This commit is contained in:
@@ -7,19 +7,21 @@ use App\Index\IndexMetaManager;
|
||||
use App\Ingest\IngestFlow;
|
||||
use App\Vector\VectorIndexHealthService;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
final class DashboardController extends AbstractController
|
||||
{
|
||||
#[Route('/admin', name: 'admin_dashboard')]
|
||||
public function index(VectorIndexHealthService $health): Response
|
||||
#[Route('', name: 'admin_dashboard_null')]
|
||||
#[Route('/', name: 'admin_dashboard_trail')]
|
||||
#[Route('/admin', name: 'admin_dashboard_alias')]
|
||||
public function trailNull(IndexMetaManager $metaManager,VectorIndexHealthService $health): RedirectResponse
|
||||
{
|
||||
return $this->render('admin/dashboard/index.html.twig', [
|
||||
'vectorHealth' => $health->check()
|
||||
]);
|
||||
return $this->redirectToRoute('admin_dashboard');
|
||||
}
|
||||
|
||||
|
||||
#[Route('/admin/dashboard', name: 'admin_dashboard')]
|
||||
public function dashboard(IndexMetaManager $metaManager,VectorIndexHealthService $health): Response
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user