Skip to content

Commit

Permalink
updated index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosun18 committed Nov 8, 2023
1 parent 805b636 commit c6c0734
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
<?php

use Slim\Factory\AppFactory;
use DI\Container;
use Slim\Middleware\MethodOverrideMiddleware;
use Slim\Flash;
use Carbon\Carbon;
use Valitron\Validator;
use Src\Database;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\TransferException;
use DiDom\Document;
use Illuminate\Support;

// Путь который будет использован при глобальной установке пакета
$autoloadPath1 = __DIR__ . '/../../../autoload.php';
// Путь для локальной работы с проектом
Expand All @@ -10,3 +22,13 @@
} else {
require_once $autoloadPath2;
}

$app = AppFactory::create();

// Обработчик
$app->get('/', function ($request, $response) {
return $response->write('Welcome to Page Analyzer!');
});


$app->run();

0 comments on commit c6c0734

Please sign in to comment.