Remove my snips from public snips

Remove home button and redirect to snip_index
This commit is contained in:
Tim
2023-04-06 21:18:57 +02:00
parent df708aa931
commit f20608082a
4 changed files with 5 additions and 10 deletions

View File

@ -11,9 +11,6 @@ class HomeController extends AbstractController
#[Route('/', name: 'home')]
public function home(): Response
{
// return $this->redirectToRoute('task_view');
return $this->render('simple.html.twig', [
'text' => 'Welcome!'
]);
return $this->redirectToRoute('snip_index');
}
}

View File

@ -37,7 +37,7 @@ class SnipController extends AbstractController
public function public(): Response
{
return $this->render('snip/index.html.twig', [
'snips' => $this->repository->findPublic(),
'snips' => $this->repository->findPublic($this->getUser()),
'title' => 'Public Snips'
]);
}