mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-17 02:51:39 -05:00
Migration fixes
This commit is contained in:
@@ -23,9 +23,12 @@ namespace ChrisKaczor.HomeMonitor.Hub.Service
|
|||||||
applicationBuilder.UseDeveloperExceptionPage();
|
applicationBuilder.UseDeveloperExceptionPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
applicationBuilder.UseRouting();
|
||||||
|
|
||||||
applicationBuilder.UseEndpoints(endpoints =>
|
applicationBuilder.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
endpoints.MapHub<WeatherHub>("/weatherHub");
|
endpoints.MapHub<WeatherHub>("/weatherHub");
|
||||||
|
endpoints.MapDefaultControllerRoute();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,13 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service
|
|||||||
|
|
||||||
var database = applicationBuilder.ApplicationServices.GetService<Database>();
|
var database = applicationBuilder.ApplicationServices.GetService<Database>();
|
||||||
database.EnsureDatabase();
|
database.EnsureDatabase();
|
||||||
|
|
||||||
|
applicationBuilder.UseRouting();
|
||||||
|
|
||||||
|
applicationBuilder.UseEndpoints(endpoints =>
|
||||||
|
{
|
||||||
|
endpoints.MapDefaultControllerRoute();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user