Skip to content

Commit 7fd8de6

Browse files
committed
1 parent 591ac71 commit 7fd8de6

File tree

1 file changed

+4
-0
lines changed
  • src/api/Elastic.Documentation.Api.Lambda

1 file changed

+4
-0
lines changed

src/api/Elastic.Documentation.Api.Lambda/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
var builder = WebApplication.CreateSlimBuilder(args);
1111

12+
builder.Services.AddControllers();
1213
builder.Services.AddAWSLambdaHosting(LambdaEventSource.RestApi, new SourceGeneratorLambdaJsonSerializer<LambdaJsonSerializerContext>());
1314
builder.Services.AddElasticDocsApiUsecases(Environment.GetEnvironmentVariable("APP_ENVIRONMENT"));
1415

@@ -17,6 +18,9 @@
1718
var v1 = app.MapGroup("/v1");
1819
v1.MapElasticDocsApiEndpoints();
1920

21+
app.UseHttpsRedirection();
22+
app.MapControllers();
23+
2024
app.Run();
2125

2226
[JsonSerializable(typeof(APIGatewayHttpApiV2ProxyRequest), GenerationMode = JsonSourceGenerationMode.Metadata)]

0 commit comments

Comments
 (0)