filegator/backend/Controllers/ViewController.php
Milos Stojanovic 261607e1d3 initial commit
2019-06-13 18:52:40 +02:00

29 lines
641 B
PHP

<?php
/*
* This file is part of the FileGator package.
*
* (c) Milos Stojanovic <alcalbg@gmail.com>
*
* For the full copyright and license information, please view the LICENSE file
*/
namespace Filegator\Controllers;
use Filegator\Config\Config;
use Filegator\Kernel\Response;
use Filegator\Services\View\ViewInterface;
class ViewController
{
public function index(Response $response, ViewInterface $view)
{
return $response->html($view->getIndexPage());
}
public function getFrontendConfig(Response $response, Config $config)
{
return $response->json($config->get('frontend_config'));
}
}