Skip to content

Commit 2b671cd

Browse files
committed
Revert "Add services necessary for aws lambda"
This reverts commit 7fd8de6.
1 parent 7fd8de6 commit 2b671cd

File tree

1 file changed

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

1 file changed

+0
-4
lines changed

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

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

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

12-
builder.Services.AddControllers();
1312
builder.Services.AddAWSLambdaHosting(LambdaEventSource.RestApi, new SourceGeneratorLambdaJsonSerializer<LambdaJsonSerializerContext>());
1413
builder.Services.AddElasticDocsApiUsecases(Environment.GetEnvironmentVariable("APP_ENVIRONMENT"));
1514

@@ -18,9 +17,6 @@
1817
var v1 = app.MapGroup("/v1");
1918
v1.MapElasticDocsApiEndpoints();
2019

21-
app.UseHttpsRedirection();
22-
app.MapControllers();
23-
2420
app.Run();
2521

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

0 commit comments

Comments
 (0)