refactor!: remove redundant /api from route

This commit is contained in:
Oliver Booth 2024-03-16 18:15:33 +00:00
parent 9ea4425c26
commit 6f1cd303f3
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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