Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 12eb672

Browse files
fix: use copy instead of reference (#2073)
* fix: use copy instead of reference * fix: exclude swagger --------- Co-authored-by: sangjanai <[email protected]>
1 parent d9a4772 commit 12eb672

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

engine/main.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,9 @@ void RunServer(std::optional<std::string> host, std::optional<int> port,
251251
.setClientMaxMemoryBodySize(1024 * 1024); // 1MiB before writing to disk
252252

253253
auto validate_api_key = [config_service](const drogon::HttpRequestPtr& req) {
254-
auto const& api_keys =
255-
config_service->GetApiServerConfiguration()->api_keys;
254+
auto api_keys = config_service->GetApiServerConfiguration()->api_keys;
256255
static const std::unordered_set<std::string> public_endpoints = {
257-
"/healthz", "/processManager/destroy"};
256+
"/openapi.json", "/healthz", "/processManager/destroy"};
258257

259258
// If API key is not set, skip validation
260259
if (api_keys.empty()) {

0 commit comments

Comments
 (0)