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/$page', 'books', 'index', 'GET'); $router->write('/books/$id/$page/rotate', 'books', 'rotate', 'POST'); $router->write('/books/$id/delete', 'books', 'delete', 'POST'); $router->write('/storage/books/$id/$file', 'books', 'read', 'GET'); $router->write('/storage/books/write', 'books', 'write', 'POST'); $router->write('/kemenov', 'kemenov', 'index', 'GET'); $router->write('/surikov', 'surikov', 'index', 'GET'); $router->write('/contacts', 'contacts', 'index', 'GET'); // Инициализация ядра $core = new core(namespace: __NAMESPACE__, router: $router); // Обработка запроса echo $core->start();