diff --git a/Shogi.Api/Program.cs b/Shogi.Api/Program.cs index 22b5d6f..05a587e 100644 --- a/Shogi.Api/Program.cs +++ b/Shogi.Api/Program.cs @@ -46,15 +46,8 @@ else { app.UseResponseCompression(); } -app.UseSwagger(options => -{ -}); -app.UseSwaggerUI(options => -{ - options.RoutePrefix = "swagger"; - options.SwaggerEndpoint("v1/swagger.json", "My API V1"); - options.DocumentTitle = "Shogi.Api"; -}); +app.UseSwagger(); +app.UseSwaggerUI(options => options.DocumentTitle = "Shogi.Api"); app.UseAuthorization(); app.Map("/", () => "OK"); app.MapControllers(); diff --git a/Shogi.UI/Pages/Identity/LoginPage.razor b/Shogi.UI/Pages/Identity/LoginPage.razor index 53f48e7..bb728eb 100644 --- a/Shogi.UI/Pages/Identity/LoginPage.razor +++ b/Shogi.UI/Pages/Identity/LoginPage.razor @@ -35,6 +35,7 @@ @code { + private string email = string.Empty; private string password = string.Empty; private string[] errorList = []; @@ -62,7 +63,8 @@ if (result.Succeeded) { email = password = string.Empty; - navigator.NavigateTo("/"); + + navigator.NavigateTo(""); } else {