Allow browsing public snips
Fixed big with branch name not existing if nothing committed
This commit is contained in:
@ -28,6 +28,16 @@ class SnipController extends AbstractController
|
||||
{
|
||||
return $this->render('snip/index.html.twig', [
|
||||
'snips' => $this->repository->findByUser($this->getUser()),
|
||||
'title' => 'My Snips'
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/public', name: '_public')]
|
||||
public function public(): Response
|
||||
{
|
||||
return $this->render('snip/index.html.twig', [
|
||||
'snips' => $this->repository->findPublic(),
|
||||
'title' => 'Public Snips'
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user