Projekt

Obecné

Profil

Stáhnout (614 Bajtů) Statistiky
| Větev: | Revize:
1
<?php
2

    
3
namespace App\Controller;
4

    
5
use App\OpenData\IOpenDataManager;
6
use Symfony\Component\Routing\Annotation\Route;
7
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
8

    
9
class HeatmapController extends AbstractController {
10
    /**
11
     * @Route("/heatmap")
12
     */
13
    public function index() {
14
        return $this->render('heatmap.html.twig');
15
    }
16

    
17
    /**
18
     * @Route("heatmap/opendata/{collectionName}", name="opendata")
19
     */
20
    public function opendata(IOpenDataManager $manager, $collectionName) {
21
        return $this->json($manager->getCollectionDataByName($collectionName));
22
    }
23
}
(2-2/2)