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

Commit c04e3e5

Browse files
committed
fix: exclude swagger
1 parent 1e6d4c6 commit c04e3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void RunServer(std::optional<std::string> host, std::optional<int> port,
252252
auto validate_api_key = [config_service](const drogon::HttpRequestPtr& req) {
253253
auto api_keys = config_service->GetApiServerConfiguration()->api_keys;
254254
static const std::unordered_set<std::string> public_endpoints = {
255-
"/healthz", "/processManager/destroy"};
255+
"/openapi.json", "/healthz", "/processManager/destroy"};
256256

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

0 commit comments

Comments
 (0)