We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 591ac71 commit 7fd8de6Copy full SHA for 7fd8de6
src/api/Elastic.Documentation.Api.Lambda/Program.cs
@@ -9,6 +9,7 @@
9
10
var builder = WebApplication.CreateSlimBuilder(args);
11
12
+builder.Services.AddControllers();
13
builder.Services.AddAWSLambdaHosting(LambdaEventSource.RestApi, new SourceGeneratorLambdaJsonSerializer<LambdaJsonSerializerContext>());
14
builder.Services.AddElasticDocsApiUsecases(Environment.GetEnvironmentVariable("APP_ENVIRONMENT"));
15
@@ -17,6 +18,9 @@
17
18
var v1 = app.MapGroup("/v1");
19
v1.MapElasticDocsApiEndpoints();
20
21
+app.UseHttpsRedirection();
22
+app.MapControllers();
23
+
24
app.Run();
25
26
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyRequest), GenerationMode = JsonSourceGenerationMode.Metadata)]
0 commit comments