Add [AllowAnonymous] to GetAnnouncement method

- Allow anonymous users to view published announcements
- Still need to debug why tests are returning NotFound
This commit is contained in:
Denis Urs Rudolph
2026-04-06 21:00:00 +02:00
parent f4e2c28869
commit 0dc30f29c5
2 changed files with 4 additions and 1 deletions
@@ -72,6 +72,7 @@ public class AnnouncementsController : ControllerBase
}
[HttpGet("{id}")]
[AllowAnonymous]
public async Task<ActionResult<AnnouncementDto>> GetAnnouncement(Guid id)
{
var announcement = await _context.Announcements