Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Dec 11, 2024
1 parent 1a80ac5 commit 394e3d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Sample/Pages/Privacy.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model PrivacyModel
@{
ViewData["Title"] = "Privacy Policy";
Expand Down
10 changes: 3 additions & 7 deletions Sample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ public void ConfigureServices(IServiceCollection services)
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
if (env.IsDevelopment()) {
app.UseDeveloperExceptionPage();
}
else
{
} else {
app.UseExceptionHandler("/Error");
}

Expand All @@ -62,8 +59,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseGraphQL<TodoSchema>();
app.UseGraphQLGraphiQL();

app.UseEndpoints(endpoints =>
{
app.UseEndpoints(endpoints => {
endpoints.MapRazorPages();
});
}
Expand Down

0 comments on commit 394e3d5

Please sign in to comment.