/* * Copyright (c) 2021, Max Wipfli * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace WebServer { static Configuration* s_configuration = nullptr; Configuration::Configuration(DeprecatedString root_path) : m_root_path(move(root_path)) { VERIFY(!s_configuration); s_configuration = this; } Configuration const& Configuration::the() { VERIFY(s_configuration); return *s_configuration; } }