Compare commits

..

2 Commits

Author SHA1 Message Date
06b6a6bf08
fix: add HttpClient to services
Some checks failed
.NET / Build & Test (push) Failing after 1m41s
2024-04-18 01:56:38 +01:00
6f1cd303f3
refactor!: remove redundant /api from route 2024-03-16 18:15:33 +00:00
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OliverBooth.Api.Controllers.v1;
[ApiController]
[Route("v{version:apiVersion}/api/badge")]
[Route("v{version:apiVersion}/badge")]
[Produces("application/json")]
[ApiVersion(1)]
public sealed class BadgeController : ControllerBase

View File

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OliverBooth.Api.Controllers.v2;
[ApiController]
[Route("v{version:apiVersion}/api/badge")]
[Route("v{version:apiVersion}/badge")]
[Produces("application/json")]
[ApiVersion(2)]
public sealed class BadgeController : ControllerBase

View File

@ -25,6 +25,7 @@ builder.Services.AddCors(options =>
options.AddPolicy("site", policy => policy.WithOrigins("https://admin.oliverbooth.dev", "https://oliverbooth.dev"));
});
builder.Services.AddHttpClient();
builder.Services.AddCommonServices();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(options => options.ResolveConflictingActions(resolver =>