Skip to content

Commit 8354fcf

Browse files
author
Kevin Campusano
committed
Use new .NET9 methods MapStaticAssets and WithStaticAssets in admin portal.
1 parent 45de623 commit 8354fcf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

EndPointEcommerce.AdminPortal/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static void Main(string[] args)
102102

103103
app.UseHttpsRedirection();
104104

105-
app.UseStaticFiles();
105+
app.MapStaticAssets();
106106

107107
app.UseStaticFiles(new StaticFileOptions
108108
{
@@ -126,7 +126,8 @@ public static void Main(string[] args)
126126

127127
app.UseAuthorization();
128128

129-
app.MapRazorPages();
129+
app.MapRazorPages()
130+
.WithStaticAssets();
130131

131132
app.MapHealthChecks("/healthz");
132133

0 commit comments

Comments
 (0)