From 289e9a906e32d10a6d2a4364c39563bb275efd20 Mon Sep 17 00:00:00 2001 From: Lapis Date: Sun, 7 Jun 2026 16:37:33 -0400 Subject: [PATCH] require auth for uploading --- CannedNet/Services/Controllers/CDNController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CannedNet/Services/Controllers/CDNController.cs b/CannedNet/Services/Controllers/CDNController.cs index 2acc8b6..d7ae996 100644 --- a/CannedNet/Services/Controllers/CDNController.cs +++ b/CannedNet/Services/Controllers/CDNController.cs @@ -1,4 +1,5 @@ using CannedNet.Services.Infrastructure; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace CannedNet.Services.Controllers; @@ -29,6 +30,7 @@ public class CDNController } [HttpPost("upload")] + [Authorize] public async Task Upload(IFormFile file) { try