25-08-2023
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using EnvelopeGenerator.Web.Handler;
|
||||
using EnvelopeGenerator.Web.Services;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
@@ -33,6 +34,9 @@ app.UseStaticFiles();
|
||||
// Add a router
|
||||
app.UseRouting();
|
||||
|
||||
// Add file download endpoint
|
||||
app.MapGet("/api/download/{docId}", FileHandler.HandleFile);
|
||||
|
||||
// Blazor plumbing
|
||||
app.MapBlazorHub();
|
||||
app.MapFallbackToPage("/_Host");
|
||||
|
||||
Reference in New Issue
Block a user