<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController extends AbstractController
{
#[Route('/download-page', name: 'download_page')]
public function downloadPage(): Response
{
return $this->render('default/download.html.twig');
}
#[Route('/download', name: 'download')]
public function download(): Response
{
return $this->file('download/Nameless.rar', 'Nameless.rar');
}
}