This commit is contained in:
Prashant Shubham 2022-11-01 05:21:10 +09:00 committed by GitHub
commit 116c8d69ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ namespace shrpx {
namespace { namespace {
// List of API endpoints // List of API endpoints
const std::array<APIEndpoint, 2> &apis() { const std::array<APIEndpoint, 2> &apis() {
static const auto apis = new std::array<APIEndpoint, 2>{ static const auto apis = new std::array<APIEndpoint, 2>{{
APIEndpoint{ APIEndpoint{
StringRef::from_lit("/api/v1beta1/backendconfig"), StringRef::from_lit("/api/v1beta1/backendconfig"),
true, true,
@ -54,7 +54,7 @@ const std::array<APIEndpoint, 2> &apis() {
(1 << API_METHOD_GET), (1 << API_METHOD_GET),
&APIDownstreamConnection::handle_configrevision, &APIDownstreamConnection::handle_configrevision,
}, },
}; }};
return *apis; return *apis;
} }