Compare commits
No commits in common. "06b6a6bf08a1579845f4aa1d6dc0da7964328010" and "9ea4425c26553905571cd6323afaf88837db382d" have entirely different histories.
06b6a6bf08
...
9ea4425c26
@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
namespace OliverBooth.Api.Controllers.v1;
|
namespace OliverBooth.Api.Controllers.v1;
|
||||||
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("v{version:apiVersion}/badge")]
|
[Route("v{version:apiVersion}/api/badge")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[ApiVersion(1)]
|
[ApiVersion(1)]
|
||||||
public sealed class BadgeController : ControllerBase
|
public sealed class BadgeController : ControllerBase
|
||||||
|
@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
namespace OliverBooth.Api.Controllers.v2;
|
namespace OliverBooth.Api.Controllers.v2;
|
||||||
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("v{version:apiVersion}/badge")]
|
[Route("v{version:apiVersion}/api/badge")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[ApiVersion(2)]
|
[ApiVersion(2)]
|
||||||
public sealed class BadgeController : ControllerBase
|
public sealed class BadgeController : ControllerBase
|
||||||
|
@ -25,7 +25,6 @@ builder.Services.AddCors(options =>
|
|||||||
options.AddPolicy("site", policy => policy.WithOrigins("https://admin.oliverbooth.dev", "https://oliverbooth.dev"));
|
options.AddPolicy("site", policy => policy.WithOrigins("https://admin.oliverbooth.dev", "https://oliverbooth.dev"));
|
||||||
});
|
});
|
||||||
|
|
||||||
builder.Services.AddHttpClient();
|
|
||||||
builder.Services.AddCommonServices();
|
builder.Services.AddCommonServices();
|
||||||
builder.Services.AddEndpointsApiExplorer();
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
builder.Services.AddSwaggerGen(options => options.ResolveConflictingActions(resolver =>
|
builder.Services.AddSwaggerGen(options => options.ResolveConflictingActions(resolver =>
|
||||||
|
Loading…
Reference in New Issue
Block a user