initial commit
This commit is contained in:
18
public/index.php
Normal file
18
public/index.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Slim\Factory\AppFactory;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
|
||||
$dotenv->load();
|
||||
|
||||
$app = AppFactory::create();
|
||||
|
||||
// Include the routes
|
||||
require __DIR__ . '/../src/routes.php';
|
||||
|
||||
$app->run();
|
||||
|
||||
Reference in New Issue
Block a user