Skip to content

Commit

Permalink
Move controller mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Oct 12, 2024
1 parent 04227df commit 7c78b59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ControlR.Web.Client/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</MudMainContent>
</MudLayout>

<DeviceContentHarness />
<DeviceContentHarness />
</div>


Expand Down Expand Up @@ -154,9 +154,9 @@
_isAuthenticated = await AuthState.IsAuthenticated();

_isWaitingForWasmLoad =
!_isBrowser &&
Uri.TryCreate(NavManager.Value.Uri, UriKind.Absolute, out var currentUri) &&
!currentUri.PathAndQuery.StartsWith("/Account");
!_isBrowser &&
Uri.TryCreate(NavManager.Value.Uri, UriKind.Absolute, out var currentUri) &&
!currentUri.PathAndQuery.StartsWith("/Account");

if (_isBrowser)
{
Expand Down
3 changes: 2 additions & 1 deletion ControlR.Web.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,14 @@

app.UseAntiforgery();

app.MapControllers();

app.MapRazorComponents<App>()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(_Imports).Assembly);

app.MapAdditionalIdentityEndpoints();

app.MapControllers();

app.MapHub<ViewerHub>("/hubs/viewer");

Expand Down

0 comments on commit 7c78b59

Please sign in to comment.