mirror of
https://github.com/ZuneDev/ZuneNetApi.git
synced 2026-07-27 13:13:20 -07:00
27 lines
515 B
C#
27 lines
515 B
C#
using Zune.Net;
|
|
using Zune.Net.Helpers;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
// Add services to the container.
|
|
|
|
builder.Services.AddControllers();
|
|
|
|
builder.Services.AddControllersWithViews(o => o.UseZestFormatters());
|
|
|
|
var app = builder.Build();
|
|
|
|
// initialize so we have a cache to protect from overcalling
|
|
MusicBrainz.Initialize(app.Environment);
|
|
|
|
// Configure the HTTP request pipeline.
|
|
|
|
//app.UseHttpsRedirection();
|
|
|
|
app.UseAuthorization();
|
|
|
|
app.MapControllers();
|
|
app.MapHomeRoute();
|
|
|
|
app.Run();
|