fixes for running on WebAssembly
This commit is contained in:
@ -444,7 +444,7 @@ namespace Oqtane.Controllers
|
||||
return user;
|
||||
}
|
||||
|
||||
// GET api/<controller>/current
|
||||
// GET api/<controller>/authenticate
|
||||
[HttpGet("authenticate")]
|
||||
public User Authenticate()
|
||||
{
|
||||
|
@ -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">
|
||||
|
Reference in New Issue
Block a user