Compare commits
2 Commits
9ea4425c26
...
06b6a6bf08
Author | SHA1 | Date | |
---|---|---|---|
06b6a6bf08 | |||
6f1cd303f3 |
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 =>
|
||||
|
Loading…
Reference in New Issue
Block a user