Skip to content

Commit a42a05e

Browse files
committed
サービスの作成順を修正
1 parent 1c6b6db commit a42a05e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SlackLineBridge/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public void ConfigureServices(IServiceCollection services)
4848
x.AddAWSProvider(awsLoggingConfig);
4949
}
5050
});
51-
services.AddControllers();
5251
services.AddHttpClient("Line", c =>
5352
{
5453
c.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Configuration["lineAccessToken"]);
@@ -69,6 +68,7 @@ public void ConfigureServices(IServiceCollection services)
6968
services.AddSingleton(jsonOptions);
7069
services.AddHostedService<LineMessageProcessingService>();
7170
services.AddHostedService<BackgroundAccessingService>();
71+
services.AddControllers();
7272
}
7373

7474
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

0 commit comments

Comments
 (0)