SPA and Front.API
Installation
# For the API
dotnet add package UIOMatic.Front.API
# For the SPA
dotnet add package UIOMatic.SPAFront.API Setup
using UIOMatic.Front.API;
var builder = WebApplication.CreateBuilder(args);
// Add services
builder.Services.AddUIOMaticFrontAPI();
// Add authentication (optional)
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options => {
// Configure JWT options
});
var app = builder.Build();
// Configure middleware
app.UseUIOMaticFrontAPI();
app.Run();SPA Setup
Using the SPA
Customization
API Customization
SPA Customization
Example
Configuration Options
Front.API Options
SPA Options
Security Considerations
Troubleshooting
Further Reading
Last updated