Activity protection
Some checks failed
Dotnet build and test / log-the-inputs (push) Has been cancelled
Dotnet build and test / build (push) Has been cancelled

This commit is contained in:
Paul Schneider 2026-08-10 18:12:59 +01:00
commit 44b391d496
No known key found for this signature in database
GPG key ID: 1E66C65EE2B46F1B
6 changed files with 42 additions and 7 deletions

View file

@ -15,7 +15,6 @@ namespace Yavsc.Controllers
{
[Produces("application/json")]
[Route("api/activity")]
[AllowAnonymous]
public class ActivityApiController : Controller
{
private ApplicationDbContext _context;
@ -88,7 +87,7 @@ namespace Yavsc.Controllers
}
// POST: api/ActivityApi
[HttpPost,Authorize("AdministratorOnly")]
[HttpPost, Authorize("AdministratorOnly")]
public async Task<IActionResult> PostActivity([FromBody] Activity activity)
{
if (!ModelState.IsValid)