Skip to content

Commit

Permalink
EES:5469: Amend endpoint route templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Jones committed Jan 7, 2025
1 parent af872a1 commit 72ba2ba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@

namespace GovUk.Education.ExploreEducationStatistics.Admin.Controllers.Api.Bau;

[Route("api/[controller]")]
[Route("api")]
[ApiController]
[Authorize(Roles = RoleNames.BauUser)]
public class FeedbackController(ContentDbContext context) : ControllerBase
{
[HttpGet]
[HttpGet("feedback")]
public async Task<ActionResult> ListFeedback(CancellationToken cancellationToken)
{
var feedback = await context.Feedback
Expand All @@ -29,7 +29,7 @@ public async Task<ActionResult> ListFeedback(CancellationToken cancellationToken
return Ok(feedback);
}

[HttpPatch("{id:guid}")]
[HttpPatch("feedback/{id:guid}")]
public async Task<ActionResult> ToggleReadStatus(Guid id)
{
var feedback = await context.Feedback.FindAsync(id);
Expand Down

0 comments on commit 72ba2ba

Please sign in to comment.