Your IP : 216.73.216.79


Current Path : /var/www/html/mampu/www/admin/dev-code/backend/Controllers/
Upload File :
Current File : /var/www/html/mampu/www/admin/dev-code/backend/Controllers/ViewController.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'));
    }
}