Merge 5ee897275f
into cb11cfcd2c
This commit is contained in:
commit
116c8d69ce
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue