Fix navigation manager usage to work on virtual path.
This commit is contained in:
@@ -46,15 +46,8 @@ else
|
|||||||
{
|
{
|
||||||
app.UseResponseCompression();
|
app.UseResponseCompression();
|
||||||
}
|
}
|
||||||
app.UseSwagger(options =>
|
app.UseSwagger();
|
||||||
{
|
app.UseSwaggerUI(options => options.DocumentTitle = "Shogi.Api");
|
||||||
});
|
|
||||||
app.UseSwaggerUI(options =>
|
|
||||||
{
|
|
||||||
options.RoutePrefix = "swagger";
|
|
||||||
options.SwaggerEndpoint("v1/swagger.json", "My API V1");
|
|
||||||
options.DocumentTitle = "Shogi.Api";
|
|
||||||
});
|
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
app.Map("/", () => "OK");
|
app.Map("/", () => "OK");
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|
||||||
private string email = string.Empty;
|
private string email = string.Empty;
|
||||||
private string password = string.Empty;
|
private string password = string.Empty;
|
||||||
private string[] errorList = [];
|
private string[] errorList = [];
|
||||||
@@ -62,7 +63,8 @@
|
|||||||
if (result.Succeeded)
|
if (result.Succeeded)
|
||||||
{
|
{
|
||||||
email = password = string.Empty;
|
email = password = string.Empty;
|
||||||
navigator.NavigateTo("/");
|
|
||||||
|
navigator.NavigateTo("");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user