Skip to content

Commit 7f2cc47

Browse files
author
Artak Mkrtchyan
committed
Fixed the loader div
1 parent e374318 commit 7f2cc47

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/BlazingPizza.Client/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<CascadingAuthenticationState>
22
<Router AppAssembly="typeof(Program).Assembly">
33
<Found Context="routeData">
4-
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
4+
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)">
55
<NotAuthorized>
66
<RedirectToLogin />
77
</NotAuthorized>

src/BlazingPizza.Client/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<title>Blazing Pizza</title>
1313
</head>
1414
<body>
15-
<div id="app" class="loading-bar"></div>
15+
<div id="app"><div class="loading-bar"></div></div>
1616

1717
<div id="blazor-error-ui">
1818
An unhandled error has occurred.

src/BlazingPizza.Server/Startup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public Startup(IConfiguration configuration)
1818
public IConfiguration Configuration { get; }
1919

2020
public void ConfigureServices(IServiceCollection services)
21-
{
22-
services.AddMvc()
23-
.AddNewtonsoftJson();
21+
{
22+
services.AddControllersWithViews();
23+
services.AddRazorPages();
2424

2525
services.AddDbContext<PizzaStoreContext>(options =>
2626
options.UseSqlite("Data Source=pizza.db"));
@@ -61,8 +61,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
6161

6262
app.UseEndpoints(endpoints =>
6363
{
64-
endpoints.MapControllers();
6564
endpoints.MapRazorPages();
65+
endpoints.MapControllers();
6666
endpoints.MapFallbackToFile("index.html");
6767
});
6868
}

0 commit comments

Comments
 (0)