MAPG-86 add home controller (only redirects now)

This commit is contained in:
Bence Pőcze 2020-05-31 20:44:14 +02:00
parent 927b34956f
commit 44db217e8b

View File

@ -0,0 +1,12 @@
<?php namespace MapGuesser\Controller;
use MapGuesser\Interfaces\Response\IRedirect;
use MapGuesser\Response\Redirect;
class HomeController
{
public function getIndex(): IRedirect
{
return new Redirect([\Container::$routeCollection->getRoute('maps'), []], IRedirect::TEMPORARY);
}
}