/* * Copyright (c) 2021, Max Wipfli * Copyright (c) 2022, Thomas Keppler * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace WebServer { static Configuration* s_configuration = nullptr; Configuration::Configuration(DeprecatedString document_root_path, Optional credentials) : m_document_root_path(move(document_root_path)) , m_credentials(move(credentials)) { VERIFY(!s_configuration); s_configuration = this; } Configuration const& Configuration::the() { VERIFY(s_configuration); return *s_configuration; } }