feat: Use MapStaticAssets over UseStaticFiles
This commit is contained in:
@@ -25,7 +25,7 @@ public interface ITextItem : IGrainWithStringKey
|
||||
public sealed class TextItemGrain : Grain, ITextItem, IRemindable
|
||||
{
|
||||
private readonly IPersistentState<TextItem> _state;
|
||||
private IGrainReminder _reminder;
|
||||
private IGrainReminder? _reminder;
|
||||
|
||||
public TextItemGrain(
|
||||
[PersistentState("text")] IPersistentState<TextItem> state)
|
||||
|
||||
@@ -52,7 +52,7 @@ app.UseHttpsRedirection();
|
||||
app.UseResponseCompression();
|
||||
|
||||
|
||||
app.UseStaticFiles();
|
||||
app.MapStaticAssets();
|
||||
app.UseAntiforgery();
|
||||
|
||||
app.MapRazorComponents<App>()
|
||||
|
||||
Reference in New Issue
Block a user