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