mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-29 11:54:27 +01:00
Fix Startup in netcoreapp3.0
This commit is contained in:
@@ -270,6 +270,9 @@ namespace BTCPayServer.Hosting
|
||||
app.UseStaticFiles();
|
||||
app.UseProviderStorage(options);
|
||||
app.UseAuthentication();
|
||||
#if !NETCOREAPP21
|
||||
app.UseAuthorization();
|
||||
#endif
|
||||
app.UseSession();
|
||||
#if NETCOREAPP21
|
||||
app.UseSignalR(route =>
|
||||
@@ -292,6 +295,7 @@ namespace BTCPayServer.Hosting
|
||||
{
|
||||
AppHub.Register(endpoints);
|
||||
PaymentRequestHub.Register(endpoints);
|
||||
endpoints.MapControllers();
|
||||
endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
|
||||
});
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user