Modifs de noms et providers

This commit is contained in:
2026-06-07 19:06:45 +02:00
parent 7da7c26a2e
commit af21591669
15 changed files with 60 additions and 16 deletions
@@ -9,13 +9,13 @@ public class GetProviderEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoi
{
public override void Configure()
{
Get ("/providers/{@Id}", x => new { x.Id });
Get ("/serviceproviders/{@Id}", x => new { x.Id });
AllowAnonymous();
}
public override async Task HandleAsync(GetProviderRequest req, CancellationToken ct)
{
Models.ServiceProvider? databaseProvider = await pyroFetesDbContext.Providers.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
Models.ServiceProvider? databaseProvider = await pyroFetesDbContext.ServiceProviders.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);
if (databaseProvider == null)
{