<?php

use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

require 'vendor/autoload.php';
require 'app/autoload.php';

$config['db']['host'] = "localhost";
$config['db']['user'] = "root";
$config['db']['pass'] = "";
$config['db']['dbname'] = "test";
$loader = new Twig_Loader_Filesystem('app/templates');
$twig = new Twig_Environment($loader);

$app = new \Slim\App(['DBsettings' => $config]);
$conteiner = $app->getContainer();

$app->get("/", function (Twig_Environment $twig) {
    echo $twig->render('index.php');
});
$app->get("/filelist", function() {
    
});
$app->run();

// your code goes here