/* * Copyright (c) 2021, Max Wipfli * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace WebServer { class Configuration { public: Configuration(DeprecatedString root_path); DeprecatedString const& root_path() const { return m_root_path; } Optional const& credentials() const { return m_credentials; } void set_root_path(DeprecatedString root_path) { m_root_path = move(root_path); } void set_credentials(Optional credentials) { m_credentials = move(credentials); } static Configuration const& the(); private: DeprecatedString m_root_path; Optional m_credentials; }; }