back photo + event tags and persons
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user