write('/', 'main', 'index'); $router->write('/account/registration', 'accounts', 'registration', 'POST'); $router->write('/account/authentication', 'accounts', 'authentication', 'POST'); $router->write('/account/deauthentication', 'accounts', 'deauthentication', 'POST'); $router->write('/account/deauthentication', 'accounts', 'deauthentication', 'GET'); $router->write('/books', 'books', 'index', 'GET'); $router->write('/books/$id', 'books', 'index', 'GET'); $router->write('/books/$id/cover', 'books', 'cover', 'GET'); $router->write('/books/$id/0', 'books', 'cover', 'GET'); $router->write('/books/write', 'books', 'write', 'POST'); // Инициализация ядра $core = new core(namespace: __NAMESPACE__, router: $router); // Обработка запроса echo $core->start();