The goals is to make handlers use proxy argument instead of keeping proxt as dependency on http context (other handlers are mostly such already) Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
22 lines
397 B
C++
22 lines
397 B
C++
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <seastar/core/sharded.hh>
|
|
#include "api.hh"
|
|
|
|
namespace service { class storage_proxy; }
|
|
|
|
namespace api {
|
|
|
|
void set_storage_proxy(http_context& ctx, httpd::routes& r, sharded<service::storage_proxy>& proxy);
|
|
void unset_storage_proxy(http_context& ctx, httpd::routes& r);
|
|
|
|
}
|