Setup sitemap
This commit is contained in:
parent
46b5d4c107
commit
50e0245d4e
9 changed files with 82 additions and 7 deletions
|
@ -10,19 +10,19 @@ use Twig\Environment;
|
|||
|
||||
class AppController extends AbstractController
|
||||
{
|
||||
#[Route('/', name: 'homepage')]
|
||||
#[Route('/', name: 'homepage', options: ["sitemap" => true])]
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->render('app/index.html.twig');
|
||||
}
|
||||
|
||||
#[Route('/imprint', name: 'imprint')]
|
||||
#[Route('/imprint', name: 'imprint', options: ["sitemap" => true])]
|
||||
public function imprint(): Response
|
||||
{
|
||||
return $this->render('app/imprint.html.twig');
|
||||
}
|
||||
|
||||
#[Route('/faq', name: 'faq')]
|
||||
#[Route('/faq', name: 'faq', options: ["sitemap" => true])]
|
||||
public function faq(): Response
|
||||
{
|
||||
return $this->render('app/faq.html.twig');
|
||||
|
|
|
@ -32,7 +32,7 @@ class OfferController extends AbstractController
|
|||
$this->photoresizer = $photoresizer;
|
||||
}
|
||||
|
||||
#[Route('/offers', name: 'offers')]
|
||||
#[Route('/offers', name: 'offers', options: ["sitemap" => true])]
|
||||
public function showAll(Environment $twig, Request $request, OfferingRepository $offerRepository, PlzToCoordinate $plzconverter, DistanceCalculator $distanceCalculator): Response
|
||||
{
|
||||
$form = $this->createForm(OfferFilterFormType::class);
|
||||
|
|
|
@ -26,7 +26,7 @@ class RegistrationController extends AbstractController
|
|||
$this->emailVerifier = $emailVerifier;
|
||||
}
|
||||
|
||||
#[Route('/register', name: 'app_register')]
|
||||
#[Route('/register', name: 'app_register', options: ["sitemap" => true])]
|
||||
public function register(Request $request, UserPasswordHasherInterface $passwordEncoder, CaptchaVerifier $captchaVerifier): Response
|
||||
{
|
||||
$user = new User();
|
||||
|
|
|
@ -10,7 +10,7 @@ use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
|
|||
class SecurityController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @Route("/login", name="app_login")
|
||||
* @Route("/login", name="app_login", options={"sitemap"=true})
|
||||
*/
|
||||
public function login(AuthenticationUtils $authenticationUtils): Response
|
||||
{
|
||||
|
|
Reference in a new issue