mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Plugins: Update startup for plugin compatibility
This commit is contained in:
committed by
Andrew Camilleri
parent
cc3908cdb3
commit
e42ef4b2f8
@@ -217,7 +217,6 @@ namespace BTCPayServer.Hosting
|
||||
}
|
||||
private void ConfigureCore(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider prov, IOptions<DataDirectories> dataDirectories)
|
||||
{
|
||||
app.UsePlugins();
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
@@ -265,9 +264,11 @@ namespace BTCPayServer.Hosting
|
||||
{
|
||||
AppHub.Register(endpoints);
|
||||
PaymentRequestHub.Register(endpoints);
|
||||
endpoints.MapRazorPages();
|
||||
endpoints.MapControllers();
|
||||
endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
|
||||
});
|
||||
app.UsePlugins();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user