diff --git a/modules/openapi-generator/src/main/resources/erlang-server/logic_handler.mustache b/modules/openapi-generator/src/main/resources/erlang-server/logic_handler.mustache index 509ed3107b7d..b14464940f36 100644 --- a/modules/openapi-generator/src/main/resources/erlang-server/logic_handler.mustache +++ b/modules/openapi-generator/src/main/resources/erlang-server/logic_handler.mustache @@ -1,7 +1,14 @@ -module({{packageName}}_logic_handler). -export([handle_request/4]). +{{#authMethods}} + {{#isApiKey}} -export([authorize_api_key/3]). + {{/isApiKey}} +{{/authMethods}} +{{^authMethods}} +-export([authorize_api_key/3]). +{{/authMethods}} -type context() :: #{binary() => any()}. -type handler_response() ::{ Status :: cowboy:http_status(),