<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Doctrine\DBAL\Connection;
class DefaultController extends AbstractController
{
/**
* @Route("/", name="app_default")
*/
public function index(Connection $connection): Response
{
$molGroupList = \App\Api\Operations\MolecularGroup::execute()->data->molecular_group_view;
return $this->render('index.html.twig',[
'molGroupList' => $molGroupList
]);
}
/**
* @Route("/toxicity/search", name="app_toxicity_search")
*/
public function toxicitySearch(): Response
{
return $this->render('search/toxicity.html.twig',[
]);
}
}