Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Last active November 2, 2022 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/2aa75419eb6a0bbbfebe5d44814a586f to your computer and use it in GitHub Desktop.
Save MartinZikmund/2aa75419eb6a0bbbfebe5d44814a586f to your computer and use it in GitHub Desktop.
using Uno.Wasm.Bootstrap.Server;
...
app.UseAuthentication();
app.UseAuthorization();
app.UseUnoFrameworkFiles();
app.MapFallbackToFile("index.html");
app.UseEndpoints(endpoints =>
{
//endpoints.MapBlazorHub();
//endpoints.MapFallbackToPage("/_Host");
endpoints.MapControllers();
});
app.Run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment