сделал кеширование статистики и настроек терминала

This commit is contained in:
2024-11-08 12:14:09 +03:00
parent fae7a2ffc8
commit a833c0f68a
4 changed files with 214 additions and 27 deletions

View File

@@ -98,6 +98,7 @@ public:
ServerResources(const ServerResources&) = delete;
ServerResources(): sf(std::make_unique<http::resource::StaticFileFactory>()), api(std::make_unique<api_driver::ApiDriver>()) {
api->startDaemon();
auth.users.emplace_back(std::make_shared<http::auth::User>("admin"));
sf->registerFile(INDEX_HTML, mime_types::text_html, false);