From 561ba170482682b083fb70154b6a074f9312599d Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Wed, 31 Jul 2019 20:18:10 -0400 Subject: [PATCH] Migration fixes --- Hub/Service/Startup.cs | 3 +++ Weather/Service/Startup.cs | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Hub/Service/Startup.cs b/Hub/Service/Startup.cs index 352f16c..8a7ff88 100644 --- a/Hub/Service/Startup.cs +++ b/Hub/Service/Startup.cs @@ -23,9 +23,12 @@ namespace ChrisKaczor.HomeMonitor.Hub.Service applicationBuilder.UseDeveloperExceptionPage(); } + applicationBuilder.UseRouting(); + applicationBuilder.UseEndpoints(endpoints => { endpoints.MapHub("/weatherHub"); + endpoints.MapDefaultControllerRoute(); }); } } diff --git a/Weather/Service/Startup.cs b/Weather/Service/Startup.cs index a0829c4..2382219 100644 --- a/Weather/Service/Startup.cs +++ b/Weather/Service/Startup.cs @@ -25,6 +25,13 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service var database = applicationBuilder.ApplicationServices.GetService(); database.EnsureDatabase(); + + applicationBuilder.UseRouting(); + + applicationBuilder.UseEndpoints(endpoints => + { + endpoints.MapDefaultControllerRoute(); + }); } } } \ No newline at end of file