Added api endpoints and configured hopframe

This commit is contained in:
2025-01-20 18:52:04 +01:00
parent 49b5339bb3
commit 6ba7275e92
16 changed files with 206 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
using Microsoft.EntityFrameworkCore;
using Portfolio.Shared.Models;
using Portfolio.Shared.Services;
namespace Portfolio.Api.Services;
internal sealed class ProjectRepository(DatabaseContext context) : IProjectRepository {
public async Task<IEnumerable<Project>> GetProjects(CancellationToken ct) {
return await context.Projects
.Include(p => p.Languages)
.ToArrayAsync(ct);
}
}