require 'Slim/Slim.php';
require 'utils/ManagerDB.php';
require 'utils/ParserCSV.php';


\Slim\Slim::registerAutoloader();

$app = new \Slim\Slim();

$app->get(
    '/hello/:name',
    function ($name) {
        
        // echo "Hello ".$name;
		$managerDB = new ManagerDB();
        $managerDB->debugManagerDB();
		
    }
);


$app->post(
    '/users',
    function () use($app) {
        
        $paramEmail = $app->request->post('email'); 
        $paramPassword = $app->request->post('password');
        $paramPasswordConfirm = $app->request->post('password_confirmation');
        $paramLogin = $app->request->post('login');