back photo + event tags and persons

This commit is contained in:
2025-08-10 20:07:40 +02:00
parent 0cc8bddfa1
commit f61b48fa4b
46 changed files with 1438 additions and 189 deletions

View File

@@ -1,5 +1,4 @@
using back.ApiService.context;
using Microsoft.EntityFrameworkCore;
using back.ServicesExtensions;
namespace back;
@@ -9,9 +8,8 @@ public class Program
{
var builder = WebApplication.CreateBuilder(args);
Directory.CreateDirectory(Constants.Data);
// Add services to the container.
builder.Services.AddDbContext<PhotoContext>(options => options.UseSqlite($"Data Source={Constants.Data}/photos.db"));
builder.Services.UseExtensions();
builder.Services.AddMemoryCache();
builder.Services.AddControllers();
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi