@ -144,6 +144,8 @@ namespace Oqtane
|
|||||||
.AddOqtaneApplicationParts() // register any Controllers from custom modules
|
.AddOqtaneApplicationParts() // register any Controllers from custom modules
|
||||||
.ConfigureOqtaneMvc(); // any additional configuration from IStartup classes
|
.ConfigureOqtaneMvc(); // any additional configuration from IStartup classes
|
||||||
|
|
||||||
|
services.AddRazorPages();
|
||||||
|
|
||||||
services.AddRazorComponents()
|
services.AddRazorComponents()
|
||||||
.AddInteractiveServerComponents(options =>
|
.AddInteractiveServerComponents(options =>
|
||||||
{
|
{
|
||||||
@ -209,11 +211,6 @@ namespace Oqtane
|
|||||||
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/" + Constants.Version + "/swagger.json", Constants.PackageId + " " + Constants.Version); });
|
app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/" + Constants.Version + "/swagger.json", Constants.PackageId + " " + Constants.Version); });
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseEndpoints(endpoints =>
|
|
||||||
{
|
|
||||||
endpoints.MapControllers();
|
|
||||||
});
|
|
||||||
|
|
||||||
app.UseEndpoints(endpoints =>
|
app.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
endpoints.MapRazorComponents<App>()
|
endpoints.MapRazorComponents<App>()
|
||||||
@ -224,6 +221,8 @@ namespace Oqtane
|
|||||||
// simulate the fallback routing approach of traditional Blazor - allowing the custom SiteRouter to handle all routing concerns
|
// simulate the fallback routing approach of traditional Blazor - allowing the custom SiteRouter to handle all routing concerns
|
||||||
app.UseEndpoints(endpoints =>
|
app.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
|
endpoints.MapControllers();
|
||||||
|
endpoints.MapRazorPages();
|
||||||
endpoints.MapFallback();
|
endpoints.MapFallback();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user