<commit_before><?php

require 'api/vendor/autoload.php';
require 'php/pages/pages_controller.php';
require 'api/database/ConnectionFactory.php';
require 'api/people/PeopleService.php';
require 'api/license/LicenseService.php';
require 'api/vendor/vrana/NotORM.php';

//chamada do framework slim
$app = new \Slim\Slim();
$page = new PageController;

    // http://estacionapa.com/login/index
$app->get('/', function() use ($page) {
    echo $page->getPage('index.html');
});
    
// http://estacionapa.com/login/index
$app->get('/login', function() use ($page) {
    echo $page->openPageByAccess();
});

// http://estacionapa.com/login/index
$app->get('/about', function() use ($page) {
    echo $page->getPage('html/pages/about.html');
});

$app->get('/register', function() use ($page) {
    echo $page->getPage('html/forms/cad_client.html');
});

$app->get('/register/user', function() use ($app, $page) {
    if($page->getAccess() == 'a')
        echo $page->getPage('html/forms//register/user');

    else
        echo $page->openPageByAccess();
});

$app->get('/register/cars', function() use ($app, $page) {
    if($page->getAccess() == 'a')
        echo $page->getPage('html/forms/admin_cad_cars.html');

    else
        echo $page->openPageByAccess();
});
<commit_msg>Retirado / sobrando do index.php<commit_after><?php

require 'api/vendor/autoload.php';
require 'php/pages/pages_controller.php';
require 'api/database/ConnectionFactory.php';
require 'api/people/PeopleService.php';
require 'api/license/LicenseService.php';
require 'api/vendor/vrana/NotORM.php';

//chamada do framework slim
$app = new \Slim\Slim();
$page = new PageController;

    // http://estacionapa.com/login/index
$app->get('/', function() use ($page) {
    echo $page->getPage('index.html');
});
    
// http://estacionapa.com/login/index
$app->get('/login', function() use ($page) {
    echo $page->openPageByAccess();
});

// http://estacionapa.com/login/index
$app->get('/about', function() use ($page) {
    echo $page->getPage('html/pages/about.html');
});

$app->get('/register', function() use ($page) {
    echo $page->getPage('html/forms/cad_client.html');
});

$app->get('/register/user', function() use ($app, $page) {
    if($page->getAccess() == 'a')
        echo $page->getPage('html/forms/register/user');

    else
        echo $page->openPageByAccess();
});

$app->get('/register/cars', function() use ($app, $page) {
    if($page->getAccess() == 'a')
        echo $page->getPage('html/forms/admin_cad_cars.html');

    else
        echo $page->openPageByAccess();
});

{'fraction_non_alphanumeric': 0.21811819595645413, 'fraction_numerical': 0.0, 'mean_word_length': 3.9480769230769233, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1480877', 'n_tokens_mistral': 877, 'n_tokens_neox': 864, 'n_words': 151}