refactor!: remove redundant /api from route
This commit is contained in:
parent
9ea4425c26
commit
6f1cd303f3
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user