fixes for running on WebAssembly

This commit is contained in:
Shaun Walker
2021-05-13 07:58:57 -04:00
parent fe3b42feed
commit 943adec3a0
4 changed files with 17 additions and 9 deletions

View File

@ -444,7 +444,7 @@ namespace Oqtane.Controllers
return user;
}
// GET api/<controller>/current
// GET api/<controller>/authenticate
[HttpGet("authenticate")]
public User Authenticate()
{

View File

@ -22,7 +22,14 @@
<body>
@(Html.AntiForgeryToken())
<app>
<component type="typeof(Oqtane.App)" render-mode="ServerPrerendered" />
@if (Configuration.GetSection("Runtime").Value == "WebAssembly")
{
<component type="typeof(Oqtane.App)" render-mode="Server" />
}
else
{
<component type="typeof(Oqtane.App)" render-mode="ServerPrerendered" />
}
</app>
<div id="blazor-error-ui">