diff --git a/src/shrpx_api_downstream_connection.cc b/src/shrpx_api_downstream_connection.cc index 254ab59e..6985a371 100644 --- a/src/shrpx_api_downstream_connection.cc +++ b/src/shrpx_api_downstream_connection.cc @@ -42,6 +42,7 @@ namespace { // List of API endpoints const std::array &apis() { static const auto apis = new std::array{ + { APIEndpoint{ StringRef::from_lit("/api/v1beta1/backendconfig"), true, @@ -54,6 +55,7 @@ const std::array &apis() { (1 << API_METHOD_GET), &APIDownstreamConnection::handle_configrevision, }, + } }; return *apis;