Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created February 27, 2024 09:18
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 bjoerntx/fef1b020a56875bead4c970038a9b3a7 to your computer and use it in GitHub Desktop.
Save bjoerntx/fef1b020a56875bead4c970038a9b3a7 to your computer and use it in GitHub Desktop.
using TXTextControl.Web;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
var app = builder.Build();
app.UseDefaultFiles();
app.UseStaticFiles();
// Configure the HTTP request pipeline.
app.UseHttpsRedirection();
app.UseWebSockets();
app.UseTXWebSocketMiddleware();
app.MapFallbackToFile("/index.html");
app.Run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment