Skip to content

Commit

Permalink
code refact
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 18, 2023
1 parent aa3b7df commit 69405d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Moonglade.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,16 @@ void ConfigureServices(IServiceCollection services)
options.Cookie.Name = $"X-{csrfName}";
options.FormFieldName = $"{csrfName}-FORM";
options.HeaderName = "XSRF-TOKEN";
}).Configure<RequestLocalizationOptions>(options =>
});

services.Configure<RequestLocalizationOptions>(options =>
{
options.DefaultRequestCulture = new("en-US");
options.SupportedCultures = cultures;
options.SupportedUICultures = cultures;
}).Configure<RouteOptions>(options =>
});

services.Configure<RouteOptions>(options =>
{
options.LowercaseUrls = true;
options.LowercaseQueryStrings = true;
Expand Down

0 comments on commit 69405d0

Please sign in to comment.