Commit 7f2cc474 authored by Artak Mkrtchyan's avatar Artak Mkrtchyan
Browse files

Fixed the loader div

parent e3743181
<CascadingAuthenticationState>
<Router AppAssembly="typeof(Program).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)">
<NotAuthorized>
<RedirectToLogin />
</NotAuthorized>
......
......@@ -12,7 +12,7 @@
<title>Blazing Pizza</title>
</head>
<body>
<div id="app" class="loading-bar"></div>
<div id="app"><div class="loading-bar"></div></div>
<div id="blazor-error-ui">
An unhandled error has occurred.
......
......@@ -18,9 +18,9 @@ namespace BlazingPizza.Server
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
{
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......@@ -61,8 +61,8 @@ namespace BlazingPizza.Server
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapRazorPages();
endpoints.MapControllers();
endpoints.MapFallbackToFile("index.html");
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment