mirror of
https://github.com/filegator/filegator.git
synced 2025-07-31 03:00:25 +02:00
initial commit
This commit is contained in:
28
backend/Controllers/ViewController.php
Normal file
28
backend/Controllers/ViewController.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user