Until now, only the configuration API was part of the V2 API. Now, when other APIs are added, it is possible that another API would be the first to register. The first to register API is different in the sense that it does not have a leading ',' to it. This patch adds an option to mark the config API if it's the first.
18 lines
337 B
C++
18 lines
337 B
C++
/*
|
|
* Copyright (C) 2018-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "api.hh"
|
|
#include <seastar/http/api_docs.hh>
|
|
|
|
namespace api {
|
|
|
|
void set_config(std::shared_ptr<httpd::api_registry_builder20> rb, http_context& ctx, httpd::routes& r, const db::config& cfg, bool first = false);
|
|
}
|