Remove my snips from public snips
Remove home button and redirect to snip_index
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
@ -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'
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user