So that the routes referencing and using ctx.sp don't step on a proxy that's going to be removed (not now, but some time later) fron under them on shutdown. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
22 lines
398 B
C++
22 lines
398 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_service; }
|
|
|
|
namespace api {
|
|
|
|
void set_storage_proxy(http_context& ctx, httpd::routes& r, sharded<service::storage_service>& ss);
|
|
void unset_storage_proxy(http_context& ctx, httpd::routes& r);
|
|
|
|
}
|