many fixes in design and add shirt story type for creation book
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// index.php - единая точка входа
|
||||
require_once 'config/config.php';
|
||||
require_once __DIR__ . '/../config/config.php';
|
||||
|
||||
// Получаем путь к запрашиваемому ресурсу
|
||||
$requestUri = $_SERVER['REQUEST_URI'];
|
||||
@@ -53,6 +53,7 @@ if (pathinfo($physicalPath, PATHINFO_EXTENSION) != 'php') {
|
||||
// Простой роутер
|
||||
class Router {
|
||||
private $routes = [];
|
||||
public $params = [];
|
||||
|
||||
public function add($pattern, $handler) {
|
||||
$this->routes[$pattern] = $handler;
|
||||
|
||||
Reference in New Issue
Block a user