test page follow up unused stores ctc

This commit is contained in:
Tykayn 2025-07-03 17:33:05 +02:00 committed by tykayn
parent 00977d4fba
commit 2bbc7153c6
2 changed files with 129 additions and 1 deletions

View file

@ -21,6 +21,7 @@ class FollowUpController extends AbstractController
$this->followUpService = $followUpService;
}
#[Route('/admin/followup/{insee_code}/delete', name: 'admin_followup_delete', requirements: ['insee_code' => '\\d+'])]
public function deleteFollowups(string $insee_code, EntityManagerInterface $em): Response {
$stats = $em->getRepository(Stats::class)->findOneBy(['zone' => $insee_code]);
@ -224,4 +225,11 @@ class FollowUpController extends AbstractController
'icon' => FollowUpService::getFollowUpIcons()[$theme] ?? 'bi-question-circle',
]);
}
}
#[Route('/admin/followup/unused-stores', name: 'admin_followup_unused_stores')]
public function unusedStores(): Response
{
return $this->render('admin/followup_unused_stores.html.twig', [
'json_url' => 'https://complete-tes-commerces.fr/13/13001-aix-en-provence/json/aix-en-provence_last_stats.json'
]);
}
}