Initial Commit
Inital Commit of Code base, nothing tested.
This commit is contained in:
commit
0144221712
31 changed files with 1304 additions and 0 deletions
24
FreeTubeSync/Program.cs
Normal file
24
FreeTubeSync/Program.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using FreeTubeSync;
|
||||
using FreeTubeSync.Database;
|
||||
using FreeTubeSync.EndPoints;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
builder.Services.AddDbContext<DataContext>();
|
||||
|
||||
builder.Services.AddScoped(typeof(IRepository<>), typeof(Repository<>));
|
||||
|
||||
// Add services to the container.
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.MapHistoryEndpoints();
|
||||
app.MapPlaylistEndpoints();
|
||||
app.MapProfileEndpoints();
|
||||
app.MapSearchHistoryEndpoints();
|
||||
app.MapSettingEndpoints();
|
||||
|
||||
app.Run();
|
||||
Loading…
Add table
Add a link
Reference in a new issue