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,13 @@
using Microsoft.EntityFrameworkCore;
using Portfolio.Shared.Models;
using Portfolio.Shared.Services;
namespace Portfolio.Api.Services;
internal sealed class TechnologyRepository(DatabaseContext context) : ITechnologyRepository {
public async Task<IEnumerable<Technology>> GetTechnologies(CancellationToken ct) {
return await context.Technologies.ToArrayAsync(ct);
}
}