Skip to content

Commit

Permalink
[Blazor.Sample] - adjusted url configs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfabian committed Feb 3, 2024
1 parent 8ce7528 commit bfde794
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ODataUrl" value="https://localhost:5001/odata"/>
<add key="ODataUrl" value="https://localhost:5001/odata/"/>
</appSettings>
</configuration>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"ODataUrl": "https://localhost:5001/"
"ODataUrl": "https://localhost:5001/odata/"
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ protected override void OnUseEndpoints(IEndpointRouteBuilder endpoints)
{
base.OnUseEndpoints(endpoints);

endpoints.MapGet("generateToken", c => c.Response.WriteAsync(GenerateJwtToken(c)));
endpoints.MapGet("odata/generateToken", c => c.Response.WriteAsync(GenerateJwtToken(c)));

endpoints.MapRazorPages();

endpoints.MapHub<DataChangesHub>("/dataChangesHub");
endpoints.MapHub<DataChangesHub>("odata/dataChangesHub");
}

#region ConfigureSignalR
Expand Down

0 comments on commit bfde794

Please sign in to comment.